Functioning traffic light