Planning Transitions to Prevent Challenging Behavior