import pygame import pygame.math import math import random pygame.init() clock = pygame.time.Clock() # declaring pygame display and caption room = pygame.display.