Breadth first, and Astar working with visualization