add function to calculate average iq of heroes