Implement A* pathfinding

I suggest you to research about “Navigation Mesh” instead of using a square grid. Look here.

1 Like