public void setUnits(List<GroupOfUnits> u)
	{
		if (u == null) {
			units = new ArrayList<GroupOfUnits>();
		} else {
			units = u;
		}
		for (GroupOfUnits unit: units) {
			unit.setOwner(this);
		}
	}