added points and lines for distance function, so mouse drawing looks better