refactoringthe game_functions module in larger projectsyou'll often refactor code you've written before adding more code refactoring simplifies the structure of the code you've already writtenmaking it easier to build on in this section we'll create new module called game_functionswhich will store number of functions that make alien invasion work the game_functions module will prevent alien_invasion py from becoming too lengthy and will make the logic in alien_invasion py easier to follow the check_events(function we'll start by moving the code that manages events to separate function called check_events(this will simplify run_game(and isolate the event management loop isolating the event loop allows you to manage events separately from other aspects of the gamelike updating the screen place check_events(in separate module called game_functionsgame_ functions py import sys import pygame def check_events()"""respond to keypresses and mouse events ""for event in pygame event get()if event type =pygame quitsys exit( ship that fires bullets