Simple game written in Java