Moved shtorkaStateMachine to separate Thread