Using detector sprites really isn't the best way to go about this. I've included a modified version of your file that performs most of the heavy work with a 2D array. I tried to make the comments explain what's going on as clearly as possible, but let me know if you need any more explanation.
Dynamic Road Stitching