Goal priorities in multi-goal based planning