calculateDistMatrixFromBoard function

Calculates the distance in a chessboard-alike structure.