Rewrote lighting function

"Streamlined" sphere collision function. (read: made less efficient)