title: How to reset Function after value already added the fist time
body: <p>So, The Game Works like this... If you have ever played Atlas this will be easy to understand</p>
  <pre><code>from easygui import *
  import sys
  import random
  from contextlib import contextmanager
  import colorsys
  
  class States:
      def __init__(self, state):
          self.state = state
  
  s1 = States(&quot;Alabama&quot;)
  s2 = States(&quot;Alaska&quot;)
  s3 = States(&quot;Arizona&quot;)
  s4 = States(&quot;Arkansas&quot;)
  s5 = States(&quot;California&quot;)
  s6 = States(&quot;Colorado&quot;)
  s7 = States(&quot;Connecticut&quot;)
  s8 = States(&quot;Delaware&quot;)
  s9 = States(&quot;Florida&quot;)
  s10 = States(&quot;Georgia&quot;)
  s11 = States(&quot;Hawaii&quot;)
  s12 = States(&quot;Idaho&quot;)
  s13 = States(&quot;Illinois&quot;)
  s14 = States(&quot;Indiana&quot;)
  s15 = States(&quot;Iowa&quot;)
  s16 = States(&quot;Kansas&quot;)
  s17 = States(&quot;Kentucky&quot;)
  s18 = States(&quot;Louisiana&quot;)
  s19 = States(&quot;Maine&quot;)
  s20 = States(&quot;Maryland&quot;)
  s21 = States(&quot;Massachusetts&quot;)
  s22 = States(&quot;Michigan&quot;)
  s23 = States(&quot;Minnesota&quot;)
  s24 = States(&quot;Mississippi&quot;)
  s25 = States(&quot;Missouri&quot;)
  s26 = States(&quot;Montana&quot;)
  s27 = States(&quot;Nebraska&quot;)
  s28 = States(&quot;Nevada&quot;)
  s29 = States(&quot;New Hampshire&quot;)
  s30 = States(&quot;New Jersey&quot;)
  s31 = States(&quot;New Mexico&quot;)
  s32 = States(&quot;New York&quot;)
  s33 = States(&quot;North Carolina&quot;)
  s34 = States(&quot;North Dakota&quot;)
  s35 = States(&quot;Ohio&quot;)
  s36 = States(&quot;Oklahoma&quot;)
  s37 = States(&quot;Oregon&quot;)
  s38 = States(&quot;Pennsylvania&quot;)
  s39 = States(&quot;Rhode Island&quot;)
  s40 = States(&quot;South Carolina&quot;)
  s41 = States(&quot;South Dakota&quot;)
  s42 = States(&quot;Tennessee&quot;)
  s43 = States(&quot;Texas&quot;)
  s44 = States(&quot;Utah&quot;)
  s45 = States(&quot;Vermont&quot;)
  s46 = States(&quot;Virginia&quot;)
  s47 = States(&quot;Washington&quot;)
  s48 = States(&quot;West Virginia&quot;)
  s49 = States(&quot;Wisconsin&quot;)
  s50 = States(&quot;Wyoming&quot;)
  
  print(&quot;Starting&quot;)
  img = &quot;/Users/Aayan/Downloads/Extra Random Projects/images.png&quot;
  start = buttonbox(image=img, title=&quot;Welcome&quot;, msg=&quot;Hi, Welcome to Atlas&quot;, choices=[&quot;Lets Go&quot;])
  name = enterbox(title=&quot;Enter Your Name&quot;, msg=&quot;Name:&quot;)
  contin = buttonbox(msg=&quot;Hi &quot; + name, choices=[&quot;Continue&quot;])
  main_men = buttonbox(msg=&quot;Which Mode Do You Want&quot;, choices=[&quot;USA-Beta&quot;, &quot;International Mode-Not Available&quot;, &quot;Exit&quot;])
  if main_men == &quot;USA-Beta&quot;:
      botmult = buttonbox(msg=&quot;Which Mode Do You want to play&quot;, choices=[&quot;Bot-Not Available&quot;, &quot;Multiplayer&quot;])
      if botmult == &quot;Multiplayer&quot;:
          print(&quot;Preparing 0bacse01219128&quot;)
          the = enterbox(msg=&quot;What is the 2nd Player Name&quot;, title=&quot;2nd Player Name&quot;)
          msgbox(msg=&quot;Hello &quot; + the)
          print(&quot;Game Starting&quot;)
          list1 = ['a', 'c', 'd', 'f', 'g', 'h', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w']
          cc = str(random.choices(list1))
          firstletter = msgbox(&quot;The First Letter Is &quot; + cc)
          cc = str(random.choices(list1))
          first1 = enterbox(&quot;Enter State&quot;)
          lol = first1.lower()
          xz = list(first1)
          so = list(cc)
  
          # Error Gate
          if xz[0] == first1[0]:
              print(&quot;\033[1;32;40m Bright Green  \n&quot; + &quot;TEST PASSED 0C1AE&quot;)
          else:
              print(&quot;\033[1;31;40m Bright Red   \n&quot; + &quot;TEST FAILED ER!ORR&quot;)
          if first1 == States:
              print(&quot;\033[1;32;40m Bright Green  \n&quot; + &quot;TEST PASSED 0D1AF&quot;)
          else:
              print(&quot;\033[1;31;40m Bright Red   \n&quot; + &quot;TEST FAILED ER!ORR&quot;)
  
          def stachek():
              if lol == (&quot;alaska&quot;,&quot;alabama&quot;,&quot;arizona&quot;,&quot;arkansas&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;california&quot;, &quot;colorado&quot;, &quot;connecticut&quot; ):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;delaware&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;florida&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;georgia&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;hawaii&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
                  
              elif lol == (&quot;idaho&quot;,&quot;illinois&quot;,&quot;indiana&quot;,&quot;iowa&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;kansas&quot;, &quot;kentucky&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;louisiana&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;maine&quot;, &quot;maryland&quot;, &quot;massachusetts&quot;, &quot;michigan&quot;, &quot;minnesota&quot;, &quot;mississippi&quot;, &quot;missouri&quot;,
                           &quot;montana&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;nebraska&quot;, &quot;nevada&quot;, &quot;new hampshire&quot;, &quot;new jersey&quot;, &quot;new mexico&quot;, &quot;new york&quot;,
                           &quot;north carolina&quot;, &quot;north dakota&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;ohio&quot;, &quot;oklahoma&quot;, &quot;oregon&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;pennsylvania&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;rhode island&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;south carolina&quot;, &quot;south dakota&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;tennessee&quot;, &quot;texas&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;utah&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;vermont&quot;, &quot;virginia&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
              elif lol == (&quot;washington&quot;, &quot;west virginia&quot;, &quot;wisconsin&quot;, &quot;wyoming&quot;):
                  msgbox(&quot;Correct&quot;)
  
                  stachek()
  
              else:
                  msgbox(msg= &quot;Incorrect, You Lose&quot;, title= &quot;Incorrect&quot;)
  
                  stachek()
  
          if first1 == States:
  
              stachek()
          else:
              stachek()
  </code></pre>
  <p>Here is the issue, I Need To run the <code>stachek</code> function Again But When I Do, It Does Not reset the First Time I initiated The code, Which means if I get Correct and press Ok to go to the Second try it shows Correct, what it is meant to do is say <code>Enter state:</code> and after that if correct then do <code>Enter state:</code> for as long as you get all correct, what it does it skips the question and keeps saying correct</p>