public ArrayList<Upgrade> getUpgradesByType(UpgradeType type){
		ArrayList<Upgrade> matching = new ArrayList<Upgrade>();
		for(Upgrade u : allUpgrades){
			if(u.getType() == type){
				matching.add(u);
			}
		}
		return matching;
	}