private void newGame ()
    throws IOException {
        // starting game normally
        ui.debugMsg("Loading gwc...");
        if (gwcfile == null) throw new IOException("invalid cartridge file");

        ui.debugMsg("pre-setting properties...");
        player.rawset("CompletionCode", gwcfile.code);
        player.rawset("Name", gwcfile.member);

        ui.debugMsg("loading code...");
        byte[] lbc = gwcfile.getBytecode();

        ui.debugMsg("parsing...");
        LuaClosure closure = LuaPrototype.loadByteCode(new ByteArrayInputStream(lbc), state.getEnvironment());

        ui.debugMsg("calling...\n");
        state.call(closure, null, null, null);
        lbc = null;
        closure = null;
    }
invokes creation of clean new game environment
main/src/main/java/cgeo/geocaching/wherigo/openwig/Engine.java