text: #Need to import our own stuff!
  
  import constants
  from level_manager import *
  from title_screen import *
  from music import *
  
  import pygame
   
  # Initialize Pygame
  pygame.init()
  screen = pygame.display.set_mode([constants.SCREEN_WIDTH,
                                    constants.SCREEN_HEIGHT])
   
  # Used to manage how fast the screen updates
  clock = pygame.time.Clock()
   
  level_manager = LevelManager()
  level_manager.load_level(TitleScreen())
  pygame.display.set_caption('Quantum Leaper: LEVEL 1')
  done = False
  
  # -------- Main Program Loop -----------
  while not done: 
      current_level = level_manager.get_current_level()
  
      #We've left the TitleScreen - Exit the game
      if current_level == None:
          break
  
      #Needs Game Logic
      #Update and Draw are very common delinations in game logic
      #Update is involved in changing game state
      #Draw simply draws objects on the screen
      current_level.draw(screen)
      current_level.update()
      
   
      # Update the screen with what we've drawn.
      pygame.display.flip()
   
      # Limit to 60 frames per second
      clock.tick(60)
  
      for event in pygame.event.get(): 
          if event.type == pygame.QUIT:
              done = True
              break
          #Needs keyboard logic too!
          #Handle base keyboard event, plus any inherited from the level
          current_level.handle_keyboard_event(event)
  
  
  pygame.quit()
  