Can't write multiple pins HIGH why?

PaulS:

What should I use in its place?

Your wife/girlfriend/whatever is going to fall asleep waiting for the end of that cycle. Why such a long delay between changes?

Perhaps the focus is not completely on the microcontroller, between delays.