fixing get_best_action