fix
fix a huge bug about pathfinding.

Thx to Lindex
Revise gitignore