def get_leadoff_hitters_by_year(year)
      results = []
      games = all_games(year)
      games.each do |game|
        boxscore = game.get_boxscore
        leadoffs = boxscore.get_leadoff_hitters
        if game.home_team_abbrev == @abrev
          results << leadoffs[1]
        else
          results << leadoffs[0]
        end
      end
      results
    end
def get_leadoff_hitters_by_year(year)
      results = []
      games = all_games(year)
      games.each do |game|
        boxscore = game.get_boxscore
        leadoffs = boxscore.get_leadoff_hitters
        if game.home_team_abbrev == @abrev
          results << leadoffs[1]
        else
          results << leadoffs[0]
        end
      end
      results
    end
Returns an array of BattingAppearance containing the leadoff hitters for each game of the specified season.