Small programming problem. Might be me.

Did I do something wrong?

Well, you left all those calls to "delay" in your code.
You didn't simplify and factor your code.
You didn't put in any loops.

Why don't you slow down, start from basics, learn some stuff, simplify what you want to do and try and understand what people are trying to tell you?