Working on the AStar that changes precision when needed. Not working yet.