Code cleanup

Apparently there is a bug with the isInShadowForLight calculations
  there are phantom shadows in the direction of the light, for some lights