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.

Question- https://www.codechef.com/problems/TLG

My Code- https://www.codechef.com/viewsolution/27383984