Fixed/Improved return on two functions

Initial return variable (pointer) set to NULL for correct comparisons
in the case that the return of the function is, in fact, NULL.

Will use this for the next_cell() function—if it's NULL, it knows we've
reached the very last cell in the grid.