use pygame.quit instead of sys.exit