move setting initial_state codes to StateMachine class
Merge pull request #131 from enbaglisash/refactor_on_state_machine_class

move setting initial_state codes to StateMachine class