import pygame

class Game:
    def __init__(self, surface, screen, running=True):
        self.surface = surface
        self.running = running
        self.screen = screen

    # Polls events from the event queue to execute
    def poll_events(self):
        # Wait for user events and react
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                self.running = False

    # The game loop that continuously runs until the `self.running` flag equals false.
    def game_loop(self):
        while self.running:
            self.poll_events()
            self.update()
            self.draw()

    # Calls for an update on the current screen.
    def update(self):
        self.screen.update()

    # Draws all of the recent updates
    def draw(self):
        self.surface.fill((0, 255, 0))  # Green background
        pygame.display.flip()  # Flips the graphics buffers to draw what's on the `screen`
@@ -405,16 +405,23 @@
  = False
+ # TEST
 %0A%0A    # 

Test commit