working Astar with GUI