> Traceback (most recent call last): 1: from main.rb:150:in `<main>'

> main.rb:137:in `big_shoe_rebounds': undefined local variable or method

> `each' for main:Object (NameError)

Anyways, the code is below. I would appreciate any advice on why I get this error and any improvements to this code. Thank you

def game_hash game_hash = { :home => { :team_name => "Brooklyn Nets", :colors => ["Black", "White"], :players => { :player1 => { :name => "Alan Anderson", :number => 0, :shoe_size => 16, :points => 22, :rebounds => 12, :assists => 12, :steals => 3, :blocks => 1, :slam_dunks => 1 }, :player2 => { :name => "Reggie Evans", :number => 30, :shoe_size => 14, :points => 12, :rebounds => 12, :assists => 12, :steals => 12, :blocks => 12, :slam_dunks => 7 }, :player3 => { :name => "Brook Lopez", :number => 11, :shoe_size => 17, :points => 17, :rebounds => 19, :assists => 10, :steals => 3, :blocks => 1, :slam_dunks => 15 }, :player4 => { :name => "Mason Plumlee", :number => 1, :shoe_size => 19, :points => 26, :rebounds => 12, :assists => 6, :steals => 3, :blocks => 8, :slam_dunks => 5 }, :player5 => { :name => "Jason Terry", :number => 31, :shoe_size => 15, :points => 19, :rebounds => 2, :assists => 2, :steals => 4, :blocks => 11, :slam_dunks => 1 } }, :away => { :team_name => "Charlotte Hornets", :colors => ["Turquoise", "Purple"], :players => { :player1 => { :name => "Jeff Adrien", :number => 4, :shoe_size => 18, :points => 10, :rebounds => 1, :assists => 1, :steals => 2, :blocks => 7, :slam_dunks => 2 }, :player2 => { :name => "Bismak Biyombo", :number => 0, :shoe_size => 16, :points => 12, :rebounds => 4, :assists => 7, :steals => 7, :blocks => 15, :slam_dunks => 10 }, :player3 => { :name => "DeSagna Diop", :number => 2, :shoe_size => 14, :points => 24, :rebounds => 12, :assists => 12, :steals => 4, :blocks => 5, :slam_dunks => 5 }, :player4 => { :name => "Ben Gordon", :number => 8, :shoe_size => 15, :points => 33, :rebounds => 3, :assists => 2, :steals => 1, :blocks => 1, :slam_dunks => 0 }, :player5 => { :name => "Brendon Haywood", :number => 33, :shoe_size => 15, :points => 6, :rebounds => 12, :assists => 12, :steals => 22, :blocks => 5, :slam_dunks => 12 } } } } } end def big_shoe_rebounds(hash) #will return the number of rebounds associated with the player that has the largest shoe size # STEP 1: find the player with the biggest shoe size #STEP 2: return that players number of rebounds game_hash each do |team, data| data.each do |attribute, values| if attribute == :players values.each do |player_number, player_data| if player_data == [:shoe_size].max return game_hash[teams_playing][attribute][player_number][:rebounds] end end end end end end big_shoe_rebounds(game_hash)