This is a snakeGame in Java.