changed NextAction in Planner interface to return an option value (to avoid raising exceptions)