Classic snake game - java applet