Refactor distance functions

Changed marks to no long fade in/out.
Broke the line drawing function out to a separate method.
Added a closure to calculate the distance to the player for arbitrary
units.