//Here is a while statement, it finds the current round, if that round is under 3 the loop will run
while(r<3){
intd3=0;
intd4=0;
intw=5;
clicked++;
r++;
roll.setText("Roll");
r=r+1;
//Makes sure that the user has clicked the roll button the same amount of times as the round counter, this makes it so that all three rounds are not played out simultaneously without any user input
if(clicked==r||clicked>r){
System.out.print(r+" ");
//The following if statements use the round counter to figure out who's turn it is and change the turn text to that player. They also figure out if the game has ended or not