Ball distance calculator almost finished.