def main_loop(self):
        """Runs the main game loop."""
        while True:
            for e in pygame.event.get():
                self.handle_event(e)

            self.step()
            pygame.time.wait(5)
Runs the main game loop.