changed point clicking algorithm to be nearest rather than tolerance based