refactor Game.java