public void checkUnits() {
		Vector<WargusUnit> units = wp.getUnits();
		boolean unactive = true;
		for (int u : unitGroups.get(0)) {
			for (WargusUnit w : units) {
				String status = WargusStateImporter.statusToString(w.getStatus()[0]);
				if (status != "idle" && w.getUnitID() == u)
				{
					unactive = false;
				}
			}
		}
		for (WargusUnit w: units) {
			if (w.IsDead()) {
				unitGroups.get(0).remove(w.getUnitID());
				unitGroups.get(0).remove(w.getUnitID());
			}
		}
		if (unactive)
			unitGroups.get(0).setActive(false);
	}