My first Astar code