A simple snake game in Java