update isGameFinished