public void setGroups() {
		Vector<WargusUnit> units = wp.getUnits();
		for (WargusUnit u : units) {
			String name = WargusStateImporter.unitTypeToString(u.getType());
			boolean inGroup = false;
			for (UnitGroup<Integer> unitGroup : unitGroups) {
				if (unitGroup.contains(u.getUnitID()))
					inGroup = true;
			}
			if (!inGroup && u.isUnit() && name != "peasant") {
				double random = Math.random();
				if (random > 0.2) { // Probability of getting put in a certain group
					unitGroups.get(0).add(u.getUnitID());
				}
				else
					unitGroups.get(1).add(u.getUnitID());
			}
		}
	}