Alternate logic with LDRs placed ahead

The car identifies the intersection by coming to it, then going a little past to determine the exact intersection type. This also allows it to identify a solid black box ending.