Increased max planning horizon, added weight comparison
to choose random policy when all policies have same weights.