Simple snake game created in Java