array without delay

any ideas on why the for function wasn't working as intended

Because "for" isn't a function?