Yes, shifting and popping will change the index. However, the point the OP is trying to make is that the player who starts first can force the second player to take all evens or all odds from the original layout. With this ability, the first player can total the two possibilities and decide the outcome before the game even starts. Quite clever.