I am creating a chess engine and have some trouble getting it to stop calculating from its recursive negamax (minimax) framework. I want it to return best move so far when a