add function to calculate average iq of attack heroes