Updated FSM

fixed StateMachine class and FSMs that inherit it