failed attempt to fix graphics glitch, refactored Light usage