def init(element, gid)
      self.gid = gid
      self.team_name = element.attributes['name']
      self.id = element.attributes['id']
      self.type = element.attributes['type']
      self.players = []
      self.coaches = []
      self.set_players(element)
      self.set_coaches(element)
    end
def init(element, gid)
      self.gid = gid
      self.team_name = element.attributes['name']
      self.id = element.attributes['id']
      self.type = element.attributes['type']
      self.players = []
      self.coaches = []
      self.set_players(element)
      self.set_coaches(element)
    end
type = home or away