uses Max to get the highest number in an integer array.