fixed some bugs, pathfind is fine, but there is one little area i need to fix. press f12 for test mode.

fixed some bugs, pathfind is fine, but there is one little area i need
to fix. press f12 for test mode.