slight speed improvement for get_best_move