isTimeOut method

bool isTimeOut()

Checks if the game is in time out. turn is the player loses the game

Implementation

bool isTimeOut() {
  return timeLimit != null &&
      (_blackRemainingTime <= 0 || _whiteRemainingTime <= 0);
}