fixed agent code to correctly use updated of Planner.NextAxtion method