StateMachine

State Machine introduction
State Machine WIP

Working through setup of the state machine.