stopping polling when game is over