The InventoryGUI now stores the corresponding Inventory object, given to its constructor.