public Inventory(int size)
    {
        this.size = size;
        itemList = new Item[size];
        x = 50;
        y = 470;
        w = 176;
        h = 40;
        int n = 100001 + (int)(Math.floor(Math.random() * 8));
        addItem(n);
        n = 110001 + (int)(Math.floor(Math.random() * 7));
        addItem(n);
        n = 120001 + (int)(Math.floor(Math.random() * 7));
        addItem(n);
    }