Don't turn continuously.
Allow KeySet() in dijkstra.