Some links that might be helpful for this story.

string.ascii_uppercase

ManhattanDistance

Emulating a 2-d array using 1-d array

Copyright 2022 Robin A. Reynolds-Haertle