Thanks for thinking with me to solve this problem, it has been solved!

It was something stupid I should've known. It is exactly what 5TonsOfFlax said, remove the loop. I couldnt see the problem until now.

@YBAB

It is not that I dont know how any form of arrays work, but it was just I didnt really understand what you said.

Even though thanks you guys