if player 2 ' s ▁ turn ▁ don ' t add current picked bag score to total . choose minimum of the two scores as P2 tries to minimize P1 's score.
else { if ( scoreOne . first < scoreTwo . first ) return [ scoreOne [ 0 ] , " " + scoreOne [ 1 ] ] ; else return [ scoreTwo [ 0 ] , " " + scoreTwo [ 1 ] ] ; } }