Changed nextDirection to translate coordinates.
Merge remote-tracking branch 'origin/master' into temp
Complete and tested pathfinding. Added comments.