added Dijkstra stuff, improved grammar in moveDir