public boolean newgame()
    {
      Scene localScene = null;
      try
      {
        localScene = SceneBuilder.readScene(this.applet, this.inp, GameApplet.this.progressDialog);
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
      }
      GameState localGameState = new GameState(this.applet);
      World localWorld = new World();
      localWorld.addScene(localScene);
      Debug.println("adding scene to empty world");
      localGameState.setWorld(localWorld);
      Debug.println("adding 2048 here");
      GameApplet.this.progressDialog.notifyProgress(25000);

      if (GameApplet.this.CurrentGameState != null)
      {
        GameApplet.this.CurrentGameState.dispose();

        GameApplet.this.CurrentGameState = null;
      }
      this.applet.removeAll();
      GameApplet.this.CurrentGrid = null;
      GameApplet.this.statpanel = null;
      GameApplet.this.CurrentRenderer = null;
      GameApplet.this.CurrentEditor = null;
      GameApplet.this.opspanel = null;
      GameApplet.this.bay.clearRamp();
      GameApplet.this.bay = null;
      GameApplet.this.buildpanel = null;
      System.gc();
      GameApplet.this.cacheThread.politeStop();

      GameApplet.this.startup(localGameState);
      GameApplet.this.progressDialog.setValue(GameApplet.this.progressDialog.getMaximum());

      String str = GameApplet.this.getParameter("username");
      if (str == null)
        localGameState.setUsername("Unknown");
      else {
        localGameState.setUsername(str);
      }
      localGameState.setUserRank("Maint. Spec. 5th Class");

      if (GameApplet.this.getParameter("cheats") == null)
      {
        localGameState.setSecurityLevel(1);
        localGameState.setPolymetals(80);
        localGameState.setEnergyUnits(80);
      }
      else
      {
        localGameState.setSecurityLevel(5);
        localGameState.setPolymetals(999);
        localGameState.setEnergyUnits(999);
      }

      GameApplet.this.setState(0);

      GameApplet.this.playing = true;
      GameApplet.this.optionspanel.setEnabled(true);
      GameApplet.this.optionspanel.remove(GameApplet.this.progressDialog);
      GameApplet.this.progressDialog = null;
      return false;
    }