Added a state machine to control character creation states