Move 2dmatrix solution