A* algo finished