refactoring; made xmansion a non-singleton; made cerebro less stateful