we'll use the button class to create play button because we need only one play buttonwe'll create the button directly in alien_invasion py as shown herealien_ invasion py --snip-from game_stats import gamestats from button import button --snip-def run_game()--snip-pygame display set_caption("alien invasion" make the play button play_button button(ai_settingsscreen"play"--snip-start the main loop for the game while true--snip-gf update_screen(ai_settingsscreenstatsshipaliensbulletsplay_buttonrun_game(we import button and create an instance called play_button uand then we pass play_button to update_screen(so the button appears when the screen updates nextmodify update_screen(so the play button appears only when the game is inactivegame_ functions py def update_screen(ai_settingsscreenstatsshipaliensbulletsplay_button)"""update images on the screen and flip to the new screen ""--snip-draw the play button if the game is inactive if not stats game_activeplay_button draw_button(make the most recently drawn screen visible pygame display flip(to make the play button visible above all other elements on the screenwe draw it after all other game elements have been drawn and before flipping to new screen now when you run alien invasion you should see play button in the center of the screenas shown in figure -