Mindset Theory of Action Phases and If-Then Planning