Click the green flag. The instructions will pop up on the screen. Watch out for junk food!
The code is from a book called Coding Games on Scratch by: Jon Woodcock.