Now the program take care about the status of the trafficlights