added setVisible method to light so that the light can be turned on and off