Extract CellGrid class

The job of this class is to draw square cells onto a canvas.