Dispatch to the current state.
Switch states on collision with pipes.