Your code works as expected.
Interesting idea with the counter. You could get rid of the if block by using the remainder operator: options[i%2]. Whenever i is even, then i%2 is zero and when i is odd, then i%2 is 1.
Thanks mikoMK for your suggestion. Tried it and it worked absolutely well. Looking Forward for your further suggestions on the assignments. Have a Great Day.