private boolean checkEnd()
	{
		int size, i;
		for (i=0; i<playersNo; ++i) if (players[i].isFinished() == false) {
			size = players[i].getCastles().size() + players[i].getHeroes().size();

			if (size == 0) {
				QMessageBox.warning(WindowStack.getLastInstance(), "Przegrana", "Gracz "+players[i].getColor().name+" przegrywa!");
				players[i].setFinished(true);
			}
		}

		
		return false;
	}