I need the first useEffect below to re-render upon a change to the grid state. Specifically, I need the useEffect containing initializeGrid() to re-render once
initializeGrid()