we want the mouse cursor visible in order to begin playbut once play begins it only gets in the way to fix thiswe'll make it invisible once the game becomes activegame_ functions py def check_play_button(ai_settingsscreenstatsplay_buttonshipaliensbulletsmouse_xmouse_y)"""start new game when the player clicks play ""button_clicked play_button rect collidepoint(mouse_xmouse_yif button_clicked and not stats game_activehide the mouse cursor pygame mouse set_visible(false--snip-passing false to set_visible(tells pygame to hide the cursor when the mouse is over the game window we'll make the cursor reappear once the game ends so the player can click play to begin new game here' the code to do thatgame_ functions py def ship_hit(ai_settingsscreenstatsshipaliensbullets)"""respond to ship being hit by alien ""if stats ships_left --snip-elsestats game_active false pygame mouse set_visible(truewe make the cursor visible again as soon as the game becomes inactivewhich happens in ship_hit(attention to details like this makes your game seem more professional and allows the player to focus on playing rather than figuring out the user interface try it yourse lf - press to playbecause alien invasion uses keyboard input to control the shipit' best to start the game with keypress add code that lets the player press to start it may help to move some code from check_play_button(to start_game(function that can be called from both check_play_button(and check_keydown_events( - target practicecreate rectangle at the right edge of the screen that moves up and down at steady rate then have ship appear on the left side of the screen that the player can move up and down while firing bullets at the movingrectangular target add play button that starts the gameand when the player misses the target three timesend the game and make the play button reappear let the player restart the game with this play button