rebuild of game.try to reduce complexity