modified slight change of game.java