adding transitions to the stateMachine