made visual state machine first draft