fixed isGameFinished