A basic implementation of the A* path-finding algorithm.