How the Traffic Light Controller Works?