private int deploy_updateTerritoryValue(Territory t)
	{	
		int newValue = allTerritoriesValues.get(t.name);
		if(t.getOwner() != null){
			if(!t.getOwner().name.equals(myName)){
				if(t.getUnits() >= 5){			// If enemy territory is largely occupied, penalize
					newValue -= 4;
				} else if (t.getUnits() < 5 && t.getUnits() > 2){  	
					newValue -= 2;
				} else {						// If enemy territory is almost empty, +value
					newValue += 1;
				}
			} else {	// I own the adjacent territory
				newValue += 3;
				for(int i = 0; i < t.adjacentTerritories.size(); i++){
					Territory adjacent = t.adjacentTerritories.get(i);
					if(adjacent.getOwner() != null && !adjacent.getOwner().name.equals(myName)){ //enemy again
						if(adjacent.getUnits() > t.getUnits()){
							newValue -= 1;
						} 
					} else {
						newValue += 2;
					}
				}
			}
		}
		return newValue;
	}