#Set up local variables fps = 20 count = 0 index = 0 #Init the board and GUI board = Board(screen) gui = GUI(screen,backgroundColor) #Load images wait = py.image.load("images/wait.png") go = py.image.load("images/go.png") #Build the initial screen gui.initScreenBuild() initScreen = True buttonList = [gui.easyButton, gui.mediumButton, gui.hardButton] py.init() while running: for event in py.event.get(): if event.type == py.QUIT: running = False #Check if the mouse is clicked if event.type == py.MOUSEBUTTONDOWN and event.button ==1: #Get the position of the click pos = py.mouse.get_pos() #Do if we are at the level screen if levelScreen == True: