New version of the game in Java