Added checkmate condition