I was reading about it for the millionth time and decided to throw this together instead of pursuing productive responsibilities. This is so much faster than a previous one. ( https://scratch.mit.edu/projects/408115661/) despite being just as brute force in searching through the open set.
https://en.wikipedia.org/wiki/A*_search_algorithm https://theory.stanford.edu/~amitp/GameProgramming/index.html