major bug found.. didnt sqt dist squared to dist.

weirdly it still seems to work... hmm..