A* nearly working