Constructor. Creates an EntityStateMachine.
Add a state to this state machine.
Change to a new state. The components from the old state will be removed and the components for the new state will be added.
Create a new state in this state machine.
See Implementation