writing loop code to iterate through the players and throw them into a table