My First A* code