public void addItem(String ttype, int ccount){
        int cccount = ccount;
        for (int i = 0;i<fullCount;i++){
            if(items.get(i).type.equals(ttype)&&(items.get(i).count<items.get(i).maxCount)){
                while(cccount>0 && items.get(i).count<items.get(i).maxCount){
                    items.get(i).count+=1;
                    cccount-=1;
                }
            }
        }
        if(cccount>0){
            if(!this.isFull()){
                int temp = this.findEmptySpace();
                items.get(temp).type = ttype;
                items.get(temp).setMax();
                items.get(temp).count = cccount;
            }
        }
    }