int GroupPlace = -1;// holds the current place in alGroups for (unsigned int i = 0; i :: iterator it;// iterator or the insert while (Crunchy < curVec[i].size()) { if (NeedNewGroup == true) {// if we need a new group add one allGroups.push_back( *(new LineGroup));// push a new plank one GroupPlace++;// increment the place NeedNewGroup = false;// dont need a new group anymore } for (unsigned int j = 0; j