Instructions are in the game. To restart just click the flag.
I got this idea from a "Coding with Scratch" book.