almost works, cell pointers are nil outside of AStar()