title: method endgame() cannot be called
body: <p>So for the main class, I only have this code. Calling the cClass. <strong>THIS IS A DICE GAME</strong></p>
  <pre><code>{
  class Program
  {
      static void Main(string[] args)
      {
          cClass cs = new cClass();
  
      }
  }
  </code></pre>
  <p>For the Constructor class, which is cClass i have this code. The method <code>endgame()</code> is not working. This is where the problem located the when the dice game done battling, the <code>endgame()</code> is not working.</p>
  <pre><code>class cClass
  {
      
      public cClass()
      {
          Intialize();
      }
  
      public void Intialize()
      {
          sClass.round = 1;
          while (sClass.com &lt; 3 &amp;&amp; sClass.player &lt; 3)
          {
          start:
              Console.WriteLine(&quot;Round (&quot; + sClass.round + &quot;)&quot;);
              Console.WriteLine(&quot;Enter your guess: ( 1 - 6)&quot;);
              sClass.guess = Convert.ToInt32(Console.ReadLine());
              if (sClass.guess &gt;= 7)
              {
                  Console.WriteLine(&quot;Only enter number ranges from 1 - 6&quot;);
                  Console.ReadLine();
                  Console.Clear();
                  goto start;
              }
              sClass.playgame();
  
              System.Threading.Thread.Sleep(1000);
              Console.WriteLine(&quot;\nThe dice rolled is...&quot;);
              Console.WriteLine(sClass.playerdie);
  
              Console.WriteLine(&quot;\nPlayer guessed: &quot; + sClass.guess);
              Console.WriteLine(&quot;Computer guessed: &quot; + sClass.comguess);
              if ((sClass.comguess == sClass.playerdie) &amp;&amp; (sClass.guess == sClass.playerdie))
              {
                  Console.WriteLine(&quot;\nBoth guessed correctly! Restarting the round!\n&quot;);
                  Console.WriteLine(&quot;Player points: &quot; + sClass.player);
                  Console.WriteLine(&quot;Computer points: &quot; + sClass.com);
              }
              else if (sClass.guess == sClass.playerdie)
              {
                  sClass.player++;
                  Console.WriteLine(&quot;\nPlayer guessed correctly you won!\n&quot;);
                  Console.WriteLine(&quot;Player points: &quot; + sClass.player);
                  Console.WriteLine(&quot;Computer points: &quot; + sClass.com);
                  sClass.round++;
              }
              else    if (sClass.comguess == sClass.playerdie)
              {
                  sClass.com++;
                  Console.WriteLine(&quot;\nComputer guessed correctly you lost...\n&quot;);
                  Console.WriteLine(&quot;Player points: &quot; + sClass.player);
                  Console.WriteLine(&quot;Computer points: &quot; + sClass.com);
                  sClass.round++;
              }
              else
              {
                  Console.WriteLine(&quot;\nNo one got it correct restarting the round!\n&quot;);
                  Console.WriteLine(&quot;Player points: &quot; + sClass.player);
                  Console.WriteLine(&quot;Computer points: &quot; + sClass.com);
              }
              Console.ReadLine();
              Console.Clear();
          }
          endgame();
      }
      
      
  
      public void endgame()
      {
          if (sClass.player &gt; sClass.com)
          {
              Console.WriteLine(&quot;Player Win! Player vs Computer&quot;);
              Console.WriteLine(&quot;               (&quot; + sClass.player + &quot;) vs (&quot; + sClass.com + &quot;)&quot;);
          }
          else if (sClass.player &lt; sClass.com)
          {
              Console.WriteLine(&quot;Computer Win! Player vs Computer&quot;);
              Console.WriteLine(&quot;               (&quot; + sClass.player + &quot;) vs (&quot; + sClass.com + &quot;)&quot;);
          }
          else
          {
              Console.WriteLine(&quot;Its a draw! Player vs Computer&quot;);
              Console.WriteLine(&quot;                (&quot; + sClass.player + &quot;) vs (&quot; + sClass.com + &quot;)&quot;);
          }
      }
  }
  </code></pre>
  <p>then I also have a static class , which is sClass.</p>
  <pre><code> static class sClass
  {
      public static int dice = 1;
      public static int playerdie;
      public static int guess;
      public static int comguess;
      public static int player;
      public static int com;
      public static int round;
      public static Random r = new Random();
  
      
      public static void playgame()
      {
          
          comguess = r.Next(1, 6);
          playerdie = rolldie();
  
      }
  
      public static int rolldie()
      {
          int die = r.Next(1, 6);
          return die;
      }
  }
  </code></pre>