This is only 2 players game. So you can simply set Boolean value to switch between players.
E.g.
Initialize boolean as
boolean isPlayer1Chance = true;
When after any chance alter value as inside for loop,
if(isPlayer1Choice){
//Do player 1 play
}else{
//Do Player 2 Play
}
isPlayer1Choice = !isPlayer1Choice;
2
solved Head&Tails game simulation between 2 players [closed]