'Main loop for entire program'

def main(self):

    while (not self.done):
        self.event_loop()
        self.update()
        pg.display.update()
        self.clock.tick(self.fps)
        if self.show_fps:
            fps = self.clock.get_fps()
            with_fps = '{}    -    {:.2f}    FPS'.format(self.caption, fps)
            pg.display.set_caption(with_fps)
