It
sounds like you've got nested loops/for loops/if statements/case constructs to the nine hells and back again! It would seem that Turing does not like that so much. You should not like that too much, either. Having nested loops/conditional statements forever and ever makes things get way, WAY too complicated. For most programs, you only NEED one
main loop (sure, there are smaller loops inside there, but they are small).
I suspect you're doing something like "if you click this button, then [code goes into another loop which is almost as big as the previous one]". If it's something like that, you need to find another way to code your program. Believe me, it will make things easier.
If that's not the case, feel free to ignore my post.