Create StateMachine.cpp