private void addNewTrain()
    {
        MiniGame2 game = (MiniGame2) getWorld();
        int sz = (game.getContainerList()).size();
        if(sz >= 3){
        Train t = new Train();
            getWorld().addObject(t,40,900);
            getWorld().removeObject(this);
        }
        else{
        getWorld().removeObject(this);
    }
        
    }