put pointers to adjacent cells in array
changing cell and pqueue structure for use in astar