The setting of the game is you are a blind hippie and you use your special metal detector (which is able to give directional information) to find treasure on a beach.
Simples.
Here is a walk through of the game with some annotations.
Some code screen shots
Menu Code
User controlsSet object locations to sound object locations
Detects when the player has gone to far and has gotten lost
Move listener back to beginning if lost

Listener-> object distance calculations
Dig fail/succeed calculations
End of game code - Check that all treasures are found
Footsteps!