final TerasologyEngine engine = new TerasologyEngine(subsystemList);
try {
engine.init();
if (isHeadless) {
engine.subscribeToStateChange(new HeadlessStateChangeListener());
engine.run(new StateHeadlessSetup());
} else {
if (loadLastGame) {
engine.submitTask("loadGame", new Runnable() {
@Override