A suggestion: Use variables in place of the hard coded magic numbers: 1 and 2 for the players.
Define two variables:


final int Player1 = 1; // define value for players
final int Player2 = 2;...