Made "StateMachine.State" private and provide Boolean accessors