Snake Game in a Java Applet