refactored StateMachine as Diagram
added ability to create condition using reflection
each state phase can hold multiple actions