alien_ invasion py start the main loop for the game while truegf check_events(ai_settingsscreenstatsplay_buttonshipbullets--snip-at this pointyou should be able to start and play full game when the game endsthe value of game_active should become false and the play button should reappear resetting the game the code we just wrote works the first time the player clicks play but not once the first game endsbecause the conditions that caused the game to end haven' been reset to reset the game each time the player clicks playwe need to reset the game statisticsclear out the old aliens and bulletsbuild new fleetand center the shipas shown heregame_ functions py def check_play_button(ai_settingsscreenstatsplay_buttonshipaliensbulletsmouse_xmouse_y)"""start new game when the player clicks play ""if play_button rect collidepoint(mouse_xmouse_y)reset the game statistics stats reset_stats(stats game_active true empty the list of aliens and bullets aliens empty(bullets empty( create new fleet and center the ship create_fleet(ai_settingsscreenshipaliensship center_ship(we update the definition of check_play_button(so it has access to ai_settingsstatsshipaliensand bullets it needs these objects to reset the settings that have changed during the game and to refresh the visual elements of the game at we reset the game statisticswhich gives the player three new ships then we set game_active to true (so the game will begin as soon as the code in this function finishes running)empty the aliens and bullets groups vand create new fleet and center the ship