spawn multiple floor 400x400

So as far as coding I’m 3 semesters away from getting my degree in Computer Science so I know C, java, python. Now, to get used to Unreal I am trying to just build a Chess game with C++ and all examples are with BP (which i don’t want). I want to spawn the entire chess board with floor 400x400 and just run that spawn through a loop changing the vectors as needed. Can I do this like this or is there a better way? Can someone explain through code how I can attach floor to what I’m spawning in this loop?