Controller.java: get Top K and call the planner