//this function calculates the number of two sixes in a row
 private void CountNumber(Roll d, EventArgs e)
 {
     num++;
     Console.WriteLine("two Sixes in a row: ");
 }
 //this function is called when sum of the numbers of last 5 throws is >= 20
 private void GreaterEqual20(Roll d, EventArgs e)
 {
     Console.WriteLine("Sum of last 5 tosses is greater than or equal to 20");
 }