Now keeps track of max while iterating over array. Makes is so that it doesn't have to search through the entire hash at the end to find the max.