Now the function of redrawing the grid is in the class