Completed Snake.java