create snake.java