sketch seems to skip lines..

Dear PaulS,

Thanks for the suggestion, I tried removing the recursions and modified the code further, It is much more stable not, but now the occasional skip to the main loop still happens but much more stable (not sure why is that perhaps the delay is not adequate). Thanks and have a good day.