for x in range(5):
for i in board:
my code is fine, nothing wrong with it. I just fail to understand how the for loop knows that x represents that it has to create a list as opposed to individual elements inside a list. This is confusing me.
Replace this line with your code.