Created loop

I created a loop that would loop through the array i created an check
to make sure that the correct amount of object were their