Finding the closest sphere