GraphFactory finished except for the Event, Condition and Actions fields

- Implementing the functions addState and getState in StateMachine
- Turned the states id into String
Changing the name from Event to SingleEvent