The game, in Java