Changed Dijkstra's algorithm to use int& for arrSize instead of just ints; we were erasing previously visited spaces in the array.