Fix bug where AI recognizes checkmate option but evaluates a different best move