Fixed Calculation of Closest Point

currentlyCloser is now a CGFloat instead of an NSInteger. See issue #58.