copied from the event loop in alien_invasion py now let' modify alien_invasion py so it imports the game_functions moduleand we'll replace the event loop with call to check_events()alien_ invasion py import pygame from settings import settings from ship import ship import game_functions as gf def run_game()--snip-start the main loop for the game while truegf check_events(redraw the screen during each pass through the loop --snip-we no longer need to import sys directly into the main program filebecause it' only being used in the game_functions module now we give the imported game_functions module the alias gf for simplification the update_screen(function let' move the code for updating the screen to separate function called update_screen(in game_functions py to further simplify run_game()game_ functions py --snip-def check_events()--snip-def update_screen(ai_settingsscreenship)"""update images on the screen and flip to the new screen ""redraw the screen during each pass through the loop screen fill(ai_settings bg_colorship blitme(make the most recently drawn screen visible pygame display flip(the new update_screen(function takes three parametersai_settingsscreenand ship now we need to update the while loop from alien_invasion py with call to update_screen()alien_ invasion py --snip-start the main loop for the game