Currently the bestmove function does not output the shortest path to check mate if it is available but rather what comes later in the move order