Added weight property to nodes
Made Astar use nodes weights