fix bug in get_best_move