fixed game logic error