turn on and off lights via an array