Changed applyLight method so that multiple lights can be added