Introduced MatrixRow class, added support for bigger grids