public boolean addUpgrade(Upgrade upgrade){
		if(upgrade.getType() == this.type){
			int position = this.nextFreePositon();
			if(position == -1) return false;
			this.upgrades[position] = upgrade;
			return true;
		}
		return false;
	}