changed the player instantiation loop to iterate over a range