void goRight(int[][] matrix, int i, int j) {
        if (j > rightBound) return;
        else {
            while (j <= rightBound) {
                int cur = matrix[i][j];
                result.add(cur);
                j++;
            }
            upperBound++;
            goDown(matrix, i + 1, j - 1);
        }
    }