title: exe version of code shows error message when i try to close it
body: <p>this code that i wrote runs fine in my ide and the exe version. but the problem arises when i try to close the program. it shows me this error(and yes, i've imported sys and used sys.exit() instead of quit().):</p>
  <blockquote>
  <p>File &quot;source.py&quot;, line 77, in 
  File &quot;source.py&quot;, line 41, in main
  for event in pygame.event.get():
  NameError: name 'quit' is not defined</p>
  </blockquote>
  <p>my game is almost done, and this is the only thing that bothers me. any help would be appreciated.</p>