Replaced Distance with MathUtil and added percentage method

I was unable to refactor all references to Distance, unfortunately