Strange behaviour setting pinMode by array

Oh wow, I can't believe I thought that was a thing. Thank you. I will try that and let you know how it goes.