public void setMax(){
        if(type == "dirt"||type == "stone"||type == "grass"){
            maxCount = 200;
        }
        else if(type == "metal"||type == "wood"){
            maxCount = 100;
        }
        else{
            maxCount = 25;
        }
    }