I wanted items to fill in any gaps if the user decides to remove an item from the middle of the list (since add just appends to the end of the list), so I take the last element and switch it with the to-be-deleted element, then delete the last element. The method in `remove` of `inventory.js` is the same idea.