1. add GET_SINGLETON_IMPL() to StateMachine.h
2. implement tryChangeIdleState()