Need help with some logic in my sketch.

Same thing.
See my edit in message #15.

Why loop 6 time when nothing changes as result?