public String toString(Rarity r) throws IOException {
		String name;
		switch(r) {
			case BASIC: name = "basic";
			case FINE: name = "fine";
			case MASTERWORK: name = "masterwork";
			case RARE: name = "rare";
			case EXOTIC: name = "exotic";
			case ASCENDED: name = "ascended";
			case LEGENDARY: name = "legendary";
			default: name = "default";
		}
		if (name == "default") throw new IOException();
		return name;
	}