Added openInventory() and closeInventory()