Try to eat the reappearing food. Use mouse to move.
This project is incomplete. By the way, ampt5up got this from the book Code Your Own Games! by Max Wainewright.