inside the game loopthe blocks will move around the screen in the direction that they are going and bounce if they have hit side there is also code to draw all of the blocks to the windowsurface surface and call pygame display update(the for loop to check all of the events in the list returned by pygame event get(is the same as in our "hello world!program draw the black background onto the surface windowsurface fill(blackfirstline fills the entire surface with black so that anything previously drawn on the surface is erased moving each block for in blocksnextthe code must update the position of each blockso iterate over the blocks list inside the loopyou'll refer to the current block as simply so it will be easy to type move the block data structure if ['dir'=downleftb['rect'left -movespeed ['rect'top +movespeed if ['dir'=downrightb['rect'left +movespeed ['rect'top +movespeed if ['dir'=upleftb['rect'left -movespeed ['rect'top -movespeed if ['dir'=uprightb['rect'left +movespeed ['rect'top -movespeed the new value to set the left and top attributes to depends on the block' direction if the direction of the block (which is stored in the 'dirkeyis either downleft or downrightyou want to increase the top attribute if the direction is upleft or uprightyou want to decrease the top attribute if the direction of the block is downright or uprightyou want to increase the left attribute if the direction is downleft or upleftyou want to decrease the left attribute post questions to