setupEntityLightingGrid complete in F#. (not tested)