private void option2_Click(object sender, EventArgs e)
 {
     if (type == 0 && currentState != 1)
     {
         if (richTextBox1.Text.Length == txt.Length && button2Click != 1)
         {
             len2 = txt2.Length;
             button2Click++;
             txt = txt2;
             timer1.Stop();
             timer2.Stop();
             timer3.Start();
         }
         else if (button2Click == 1 && richTextBox1.Text.Length == txt.Length)
         {
             BattleScreen form1 = new BattleScreen(player, 2);
             form1.Show();
             this.Hide();
         }
     }
     else if (currentState == 1)
     {
         this.Close();
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (type == 0 && currentState != 1)
     {
         if (timer1.Enabled == false && counter2 <= 315)
         {
             clickCounter++;
         }
         else
         {
         }
         if (timer2.Enabled == false && timer1.Enabled == false && counter2 <= 315)
         {
             clickCounter2++;
         }
         else
         {
         }
         if (clickCounter == 1 && counter2 <= 315)
         {
             clearTextBox();
             timer1.Stop();
             timer2.Start();
             len1 = txt1.Length;
             if (counter1 == txt1.Length)
             {
                 timer1.Stop();
             }
             else
             {
             }
         }
         else if (clickCounter2 == 2 && counter2 <= 315)
         {
             timer1.Stop();
             timer2.Stop();
             if (currentState == 0)
             {
                 BattleScreen form1 = new BattleScreen(player, 3);
                 form1.Show();
                 this.Hide();
             }
             else
             {
                 BattleScreen form1 = new BattleScreen(player, 1);
                 form1.Show();
                 this.Hide();
             }
         }
         else if (button2Click == 1 && richTextBox1.Text.Length == txt.Length)
         {
             MessageBox.Show("Please select option 2");
         }
     }
     else if (currentState == 1)
     {
         this.Close();
     }
 }