public static UnitType getTier(int tier, CastleType type)
	{
		for (UnitType i: UnitType.values()) {
			System.out.println ("unit "+i.level+", "+i.castle);
			if (i.level == tier && i.castle == type) {
				return i;
			}
		}
		return null;
	}