Run in turbo mode. Wait a few seconds, then you have to move the rectangles somewhere and set them down. You have to do this quickly or it will not work.
I knew the theory of raycasting, so I just put it in code!