Programming - Vex EXP treasure hunter

Very new to this platform and coding. Struggling to help students with the Treasure Hunter challenge, any help would be appreciated.