move the baddies down for in baddies if not reversecheat and not slowcheat ['rect'move_ip( ['speed'] elif reversecheat ['rect'move_ip( - elif slowcheat ['rect'move_ip( delete baddies that have fallen past the bottom for in baddies[:] if ['rect'top windowheight baddies remove( draw the game world on the window windowsurface fill(backgroundcolor draw the score and top score drawtext('score% (score)fontwindowsurface drawtext('top score% (topscore)fontwindowsurface draw the player' rectangle windowsurface blit(playerimageplayerrect draw each baddie for in baddies windowsurface blit( ['surface'] ['rect'] pygame display update( check if any of the baddies have hit the player if playerhashitbaddie(playerrectbaddies) if score topscore topscore score set new top score break mainclock tick(fps stop the game and show the "game overscreen pygame mixer music stop( gameoversound play( drawtext('game over'fontwindowsurface(windowwidth )(windowheight )post questions to