Refactored rows, columns, subgrids

- removed duplication
- changed how the array indices are calculated
Removed solved? method from grid.rb to grid_solver.rb