pull the grid logic into its own class in preparation for adding multiple grids
multiple buffers supported