set flag to false when game over