Please help with this question. The Lead Game

If i play two rounds of billiards then i am getting output according to the winner of the first round,
but if i play one or any other number of rounds(except two) of billiards i am getting correct output.


My Code-