My snake game in Java