private void startClicked()
	{
		WindowStack ws = WindowStack.getLastInstance();
		System.out.println("map loaded "+ws+"");
		
		start.hide();
		back.hide();
		options.hide();
				
		QLabel loading = new QLabel("Wczytywanie...");
		loading.setParent(this);
		loading.setStyleSheet("font-size: 20px; qproperty-alignment: AlignCenter");
		loading.setGeometry(width()/2-100, height()/2-100, 200, 200);
		loading.show();
		
		QApplication.processEvents();
		if (ws != null) {
			core.Mission mission = missions[this.mission.currentIndex()];
			mission.init(name.text());
			
			QApplication.processEvents();
			
			gui.WindowMap window = new gui.WindowMap();
			gui.WidgetMap map = mission.getMapWidget();
			
			QApplication.processEvents();
			
			mission.startTurn.connect(window, "startTurn(int,Player)");
			mission.updateWindow.connect(window, "updateData(Player)");
			window.heroChanged.connect(mission, "activeHeroChanged(Hero)");
			window.moveClicked.connect(mission, "moveClicked()");
			window.turnClicked.connect(mission, "turnClicked()");
			window.interactWithCastle.connect(mission, "interactWithCastle()");
			window.interactWithHero.connect(mission, "interactWithHero()");
			mission.addHero.connect(window, "addHero(Hero)");
			mission.addHero.connect(window, "setHero(Hero)");
			mission.removeHero.connect(window, "removeHero()");
			map.pressed.connect(mission, "clickedOnMap(int,int)");
			window.setMap(map);
			
			QApplication.processEvents();
			mission.start();
			
			QApplication.processEvents();
			ws.push(window);
			
			QApplication.processEvents();
		}
	}