Implement your strategy by completing the procedure "escape". Hint: there is a built-in procedure "random n" (where n is any integer of your choosing) that returns a random number between 0 and n-1. You might find this useful.
A quick music lesson:
[note 77 2] plays an F
[note 84 2] plays a C
[note 88 2] plays an E
[note 91 2] plays a G
[note 93 2] plays an A