Fixed a bug in the dijkstra method where the pathfinding variables never were initialized