I try to learn pathfinder on base A* logic
Press Z when Yellow Square(Hero) will be on an Empty(Black) Tile to test pathfind script.
Blue Tile is a NPC
Just press Z more times to move NPC.
There's some bugs, but still it's working)