def get_atbats
      atbats = []
      innings = get_innings
      innings.each do |inning|
        inning.top_atbats.each do |atbat|
          atbats << atbat
        end
        inning.bottom_atbats.each do |atbat|
          atbats << atbat
        end
      end
      atbats
    end
def get_atbats
      atbats = []
      innings = get_innings
      innings.each do |inning|
        inning.top_atbats.each do |atbat|
          atbats << atbat
        end
        inning.bottom_atbats.each do |atbat|
          atbats << atbat
        end
      end
      atbats
    end
Returns an array of AtBat objects that represent each atbat of the game