Fixed rounding error in calculated avg position -> used floor function
Now 0 is NOT favoured in calculating avg position