It took me a long time of guessing blindly but I finally managed to arrange the boxes properly. Even with the solution, I'm not sure why infrared light would travel in such a way.
You were definitely right though - the robot's influence on the system made me paranoid about the solution being correct. That was a good and probably the most unique use of the limitation I've seen so far. The art is very good, too.