A simple snake game written in Java