pygame display update(mainclock tick( the program will look like figure - the the bouncer square will bounce around the window when it collides with the green food squares they will disappear from the screen figure - an altered screenshot of the collision detection program importing the modules import pygamesysrandom from pygame locals import the collision detection program imports the same things as the animation program in the last along with the random module the collision detection algorithm def dorectsoverlap(rect rect )to do collision detectionyou need function that can determine if two rectangles collide with each other or not figure - shows colliding and non-colliding rectangles figure - examples of colliding rectangles (leftand rectangles that don' collide (rightpost questions to