private Role getRoleFromKey(int key){
		if(key < 0) key = MAX_KEY;
		if(key > MAX_KEY) key = 0;
		switch(key){
		case WARR_KEY:
			return Role.WARRIOR;
		case MAGE_KEY:
			return Role.MAGE;
		case RGUE_KEY:
			return Role.ROGUE;
		case BMGE_KEY:
			return Role.BATTLEMAGE;
		case CLRC_KEY:
			return Role.CLERIC;
		case ARCH_KEY:
			return Role.ARCHER;
		default:
			System.err.println("ERROR: Invalid role key. Defaulting to warrior.");
			return Role.WARRIOR;
		}
	}