public void act() 
    {
        
        if(isAtEdge() && checkLoadingState()){
            //MiniGame2 w = (MiniGame2) getWorld();
            //w.removeFromList(index);
            getWorld().removeObject(this);
            return;
        }
        if(atTruckStop())
        {
            return;
        }

        if(canAddTruck())
        {
            addTruck();
        }        
        if(getTruckState())
        {
            moveContainer();
            return;
        }

        if(checkLoadingState())
        {
            this.allowTruckToMove();
            getPullingTruck().allowTruckToMove();
            return;
        }

    }