snake game with Java