determining the traffic lights