Finished A* debugging (as far as I can tell).