Need to fix structure for populating tiles

I need to consider the iteration algorithm through the array. Maybe an
iteration function?