made astar function more like linkedlist and binarytree. can just add regular objects as nodes and tell the map to handle connecting/disconnecting them.