How to solve the problem:
Traffic light control is not very easy. The solution 'traffic light.sfc' is much simpler than the 'traffic light2.sfc' solution. For havy traffic, the first solution fails to work correctly. The solutions keep as much freedom as possible, if a single car detector indicates a waiting car. Depending on the actual traffic, green can be given for different signals.