Moved the rest of the update logic into UpdateInventory()