added maxBattles support and fixed GUILauncher