AI_check_for_checkmate