began adding conditions for checkmate check