I have written a code for a game in pygame_functions and an issue is showing up pygame.error video system not initialized and therefore the any keyboard or mouse command is not working.