very confused with initializing the grid of pointers to each neighbor