I\'m implementing the A* algorithm for pathfinding on a 2-dimensional grid. The algorithm functions fine, but when using matplotlib.pyplot.imshow(), the colors denoting each