Grid.
The point is where you need to start looking for a way.
The point where you need to find the path.
An array of points, i.e. consistent path to the end of the path. If the last point is not equal to the last point, then the path was not found and only the closest path to the point was found.
Finds a path at given coordinates in a grid using the A* algorithm.