It would be better to implement it in a more aesthetically pleasing way - play 111 five times, saving at the end of the blue player's turn. Then, start eliminating generations, beginning with red; each player eliminates two generations, and play on the remaining one.