while loop to check if round should end