Move SquareDistance[] to botboard.cpp

No functional change.