Create Traffic Lights

This is a simple code on how traffic lights alternate in lighting.