Delays not working/sets of code in loop are skiped

Because your sequence uses lengthy delays between actions, you may benefit from a STATE MACHINE to maintain clear control of the steps.

Equally, you may find some benefit in rationalising the repeating blocks of code into functions.

These two options will make your code much more readable and logical - and probably smaller!