Adds state machine to the controller in the simulation. Orientation rule changed.