//choose your language
Tool.pause(250);
lang = Language.init(null);
while(lang==null); //wait
gameEnv = new GameGEnvImpl(null, 0, lang, null);
//choose your play mode
mf = new MainFrame(lang, gameEnv);
GameEngine eng = ChooseModeDialog.mode(gameEnv, mf);