fixing light logic for multiple lights