Hi,
First, you need to specify which particular chip you've got - AVR is a controller family, each differently equipped.
Second, you need to specify the max. size of the grid and how many parameters you want to store for each "cell".
(You may need to consider external flash RAM or EEPROM for storage,depending on the grid size).