I make the merge only when the app variable is mod 2. So you should let me once and a no. I then at the end of the growth process lavariabile app. So I do not understand why me see forever. Look at the code:
if ((app mod 2)=0) then
begin
DG.MergeCells(1,4,1,5);
DG.MergeCells(2,4,2,5);
end;