        if line.chars().nth(idx).unwrap() == tree {
            tree_count += 1;
        }

        idx = get_next_idx(idx, line.len(), slope_right);
        if slope_down > 1 {
            i += slope_down - 1;
        }
