Changed condition for isBoardOk method