title: How to fix main() at the end of the code?
body: <pre><code>def main()
      global FPSCLOCK, DISPLAYSURF, BASICFONT, RESET_SURF, NEW_SURF, NEW_RECT, SOLVE_SURF, SOLVE_RECT
  
      pygame.init()
      FPSCLOCK = psygame.time.Clock()
      screen = psygame.display.set_mode(WINDOWWIDTH, WINDOWHEIGHT)
      pygame.display.set_caption('puzzle')
      BASICFONT = pygame.font.Font('freesansbold.ttf', BASICFONTSIZE)
  </code></pre>
  
  <p>end of code:</p>
  
  <pre><code>if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>that is what my main() code looks like, but when i run my code (which plays a game, puzzle) the console says File "puzzle.py", line 330 in module>. What am I doing wrong?</p>
  
  <p>Command Prompt(after i boot up game):</p>
  
  <pre><code>Traceback (most recent call last):
    File "puzzle.py", line 330, in &lt;module&gt;
      main()
    File "puzzle.py", line 46, in main
      screen = pygame.display.set_mode(WINDOWWIDTH, WINDOWHEIGHT)
    TypeError: must be 2-item sequence, not int
  </code></pre>