public boolean setContainer(Train train, Container container, float tpf, int row) {
        

        switch (switchcase) {
            case 1://moving the crane
                if ((int) this.getLocalTranslation().x < (int)(13 / 3 * row * 1.2f) + (96f)) {
                    this.move(tpf * 3f / 3, 0, 0); // divide by 3 becouse our scale
                } else if ((int) this.getLocalTranslation().x > (int)(13 / 3 * row * 1.2f) + (96f)) {
                    this.move(-tpf * 2f / 3, 0, 0); // divide by 3 becouse of our scale
                }

                if ((int) this.getLocalTranslation().x == (int)(13 / 3 * row * 1.2f) + (96f)) {
                    if(timer.counter(30, tpf)) //start lifting the container
                    switchcase++;
                }
                
                return false;
            case 2://lifting the container
                    container.move(0,tpf * 0.0504f ,0);
                
                    if(timer.counter(120,tpf)) {
                        this.attachChild(container);
                        container.setLocalTranslation(0, 7, 6.7f); //
                        container.rotate(0, FastMath.PI / 2, 0);
                        switchcase++;
                    }
                return false;
            case 3:// moving the container towards the train (horizontal)
                if (container.getLocalTranslation().z > 1.7f) {
                    container.move(0, 0, 5 / 3 * -tpf);// divide by 3 becouse of our scale
                } else 
                    switchcase++;
                return false;
            case 4://letting the container decrease to the crain
                container.move(0, -tpf * 0.065f, 0);
                
                if(timer.counter(60,tpf)){
                    this.detachChild(container);
                    train.attachChild(container);
                    container.setLocalTranslation(-199 + (13 / 3 * row * 1.2f) + 13 / 3, 1, 0);
                    switchcase = 1;
                    return true;
                }
           
                return false;
                
        }
        return false;
    }