A* almost working