make the astar result a list instead of a deque for better performance; regenerating the map now works, but needs further work