Thanks for sending me a better thought out solution. Using the function in this case is much more effective. I also didn't know that it would be better to distribute the conditions between events instead of combining everything in one event.
However, the same error still persists as in the previous solution. I am sending the screens below as an example:
If I click on the button to the right of the initial blue one and then on the button that is diagonally, the blue object crosses the area without a path.
To lower the red object to the next base, I can either click on the button that appears just below or on the other button that is to the right of the destination base.
If I click on the button that is to the left of the target button, the object moves diagonally to the base that is on the far left