Improvement for SmartPlayer: choosing shortest way to win