public int getRandomContainerType(MiniGame2 myWorld){
        List<MainContainer> CList = myWorld.getContainerList();
        if(CList.size() > 0){
        int random = Greenfoot.getRandomNumber(CList.size());
        System.out.println(random);
        MainContainer x = CList.get(random);
        int size = x.impSize;
        int color = x.impColor;
        myWorld.removeFromList(random);
        return x.convertType(size,color);
    }
   
    else{
            myWorld.showText("Well done",400,300);
            Greenfoot.stop();
            return 0;
    }

        //System.out.println(myWorld.getContainerList());
    
        //return Greenfoot.getRandomNumber(4);
    }