fix spectator can end the game