Fixed dijkstra(hopefully); changed openList to queue