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
lev[2].level = &lev1;
lev[3].level = &lev1;
lev[4].level = &lev1;
}
int ind = 0;
//ind = (*(lev[current_level].level + rowcounter))[colcounter];
//ind = *(*(lev[current_level].level + rowcounter) + colcounter);
ind = *(lev[current_level].level[rowcounter] + colcounter);
is that enough?