use for smoothing bonus(middlegame) = bonus(endgame)/2