GetBestPath fixed.
Merge pull request #19 from choko/getbestpath_fix

GetBestPath fixed.