Small snake game made in Java