Converted the inventory in InventoryManager from a hash table to an ArrayList.

Still generates errors, but doesn't seem to affect performance. Strange.