Wrote a totally unoptimized, but apparently functional implementation of the A* pathfinding algorithm.