ForEachLoop only printing index 0

Hey, thank you so much! Yours is the right answer, now it works.