switching between 2 loops possible?

That was a code left over from old sketch.

It's still in your code. It's complete nonsense. Isn't that a good enough reason to stop reading?