Planner for multiple goals