Implements a basic version of a* pathfinding. Drag the purple dot somewhere and it will search for the green dot and then replay the path it found!
https://en.wikipedia.org/wiki/A*_search_algorithm