boolean upgradeWeapon(String weapon){
	Debug.debug(username + " upgrading his " + weapon);
	if(primaryWeapon.equals(weapon)){
	    Debug.stub("upgrading primary weapon (" + weapon + ")");
	    boolean success = subtractResourcesForWeaponUpgrade(weapon, primaryWeaponLevel);
	    if(success){
		primaryWeaponLevel++;
		Debug.guiMessage(username + " upgrades his " + weapon);
		return true;
	    }
	    else {
		return false;
	    }
	}
	else if(secondaryWeapon.equals(weapon)){
	    boolean success = subtractResourcesForWeaponUpgrade(weapon, secondaryWeaponLevel);
	    if(success){
		secondaryWeaponLevel++;
		Debug.guiMessage(username + " upgrades his " + weapon);
		return true;
	    }
	    else {
		return false;
	    }
	}
	else {
	    Debug.warn(username + " tried to upgrade weapon '" + weapon + "', but doesn't have it.");
	    return false;
	}
    }