StateMachine stuff should be pretty much good for now. FINALLY got that shit to work with pointers to functions and other crazy stuff