Fixed syntax errors and imported pygame.