Ken,
  I made the change so that the function is now called on a Game object but I am confused as to why I needed to make the change.