@Override
 public void reloadScene(String s) {
   loading = true;
   SpaceScene scene = scenes.get(s);
   scene.reset();
   scene.start();
   loading = false;
 }
 @Override
 public void dispose() {
   Iterator<SpaceScene> appIter = scenes.values();
   while (appIter.hasNext()) {
     SpaceScene app = appIter.next();
     app.dispose();
   }
 }
 @Override
 public void resize(int width, int height) {
   Iterator<SpaceScene> appIter = scenes.values();
   while (appIter.hasNext()) {
     SpaceScene app = appIter.next();
     app.resize(width, height);
   }
 }
 @Override
 public void create() {
   Iterator<SpaceScene> appIter = scenes.values();
   while (appIter.hasNext()) {
     SpaceScene app = appIter.next();
     app.create();
   }
   reloadScene("main menu");
   switchScene("main menu");
 }
 @Override
 public void switchScene(String s) {
   // if (currentApp != null)
   // {
   //	currentApp.pause();
   // }
   Gdx.app.log("switched scene to", s);
   currentApp = scenes.get(s);
   Gdx.input.setInputProcessor(currentApp.getInputProcessor());
 }
 @Override
 public void resume() {
   currentApp.resume();
 }
 @Override
 public void pause() {
   currentApp.pause();
 }
 @Override
 public void render() {
   if (!loading) currentApp.render();
 }