Isometric DEPTH SORTING

I wanted to ask who is making an isometric game, if he solved this problem that I can not solve

https://drive.google.com/open?id=1MsB1rhcYYUXAScDDVRdQCSNzM9gwPZeo

Put the green cube directly on top of the blue cube (touching it). Then, instead of moving the green cube up and down (vertically), slide it along the horizontal plane along the blue cube’s surface toward it’s position. Then you can put the red cube in place. The important part is that the green and blue cube must be touching.