In the for loop that blits the images to the screen, use "pygame.event.pump()" to prevent not responding in windows.