Added average equation to calculate average moves