Added methods to check if an item is in the inventory and what slot it is in.