fix set game logic