Don't let the snake touch it's body. Use the Up, Down, Left, Right arrows to move.
I had help from a book called 20 Games to Create with Scratch. Also see "Ping Pong (2-Player)" by SplatoonPro.