changes to pointExists and pointInRange calculations.
now pythagoras is used to determine if a point is in range