high_score_str "{:,}format(high_scoreself high_score_image self font render(high_score_strtrueself text_colorself ai_settings bg_colorcenter the high score at the top of the screen self high_score_rect self high_score_image get_rect(self high_score_rect centerx self screen_rect centerx self high_score_rect top self score_rect top we round the high score to the nearest and format it with commas we then generate an image from the high score wcenter the high score rect horizontally xand set its top attribute to match the top of the score image the show_score(method now draws the current score at the top right and the high score at the top center of the screenscoreboard py def show_score(self)"""draw the score to the screen ""self screen blit(self score_imageself score_rectself screen blit(self high_score_imageself high_score_rectto check for high scoreswe'll write new functioncheck_high_score()in game_functions pygame_ functions py def check_high_score(statssb)"""check to see if there' new high score "" if stats score stats high_scorestats high_score stats score sb prep_high_score(the function check_high_score(takes two parametersstats and sb it uses stats to check the current score and the high scoreand it needs sb to modify the high score image when necessary at we check the current score against the high score if the current score is greaterwe update the value of high_score and call prep_high_score(to update the image of the high score we need to call check_high_score(each time an alien is hit after updating the score in check_bullet_alien_collisions()game_ functions py def check_bullet_alien_collisions(ai_settingsscreenstatssbshipaliensbullets)--snip-if collisionsfor aliens in collisions values()stats score +ai_settings alien_points len(alienssb prep_score(check_high_score(statssb--snip-we call check_high_score(when the collisions dictionary is presentand we do so after updating the score for all the aliens that have been hit scoring