Deal with gaps in the team player tables

If a player fails to join it will leave a hole, which may mess up Lua's
# operator. Using pairs avoids this issue, and the order we add them
isn't at all important.