internal Inventory(Barracks barracks)
        {
            items = barracks.getSpareItems();
            sprites = new List<Sprite>();
            sprites.Add(new Sprite(Item.getItemTexture(ItemID.none)));//for no texture?
            //items.Add(ItemID.none); add no changes button correctly
            rows = 1;
            cols = 1;
            int amt = items.Count;//pressing the first box is equiping nothing
            for (int i = 1; i < amt; i++) {
                double d = ((double)GameBox.GAMERESX / cols) / (GameBox.GAMERESY / rows);//get the ratio of x to y

                if(i == rows*cols){//full
                    if (d >= 4.0 / 3) {
                        cols++;
                    } else {
                        rows++;
                    }
                }
                sprites.Add(new Sprite(Item.getItemTexture(items[i])));
            }
        }