changed from Hashmap back to ArrayList for inventory