Made a common function to set the bulbs to a colour