public void addTank(Tank t, int battles, int wins) {
		if (tankBattles.containsKey(t)) {
			BattleStats b = tankBattles.get(t);
			battlesByType[t.type.ordinal()] += battles - b.battles;
			b.battles = battles;
			b.victories = wins;
		} else {
			BattleStats b = new BattleStats();
			b.battles = battles;
			b.victories = wins;
			tankBattles.put(t, b);
			battlesByType[t.type.ordinal()] += battles;

			if (t.tier > 0 && t.tier <= 10) {
				if (t.effectiveTier() > maxEffectiveTier[0]) {
					maxEffectiveTier[0] = t.effectiveTier();
				}
				++tanksByTier[0][t.tier - 1];
				if (t.tier > maxTier[0]) {
					maxTier[0] = t.tier;
				}
				int v = ArrayManip.indexOf(typeOrder, t.type);
				if (v > 0) {
					++tanksByTier[v][t.tier - 1];
					if (t.tier > maxTier[v]) {
						maxTier[v] = t.tier;
					}
					if (t.effectiveTier() > maxEffectiveTier[v]) {
						maxEffectiveTier[v] = t.effectiveTier();
					}
				}
				++tanksByTier[6][t.effectiveTier() - 1];
				if (t.effectiveTier() > maxTier[6]) {
					maxTier[6] = t.effectiveTier();
				}
			}
		}
	}