board_size = 20
gaps = 1
time_per_col = .25
LIVING_CELL_COLORS = MAT_ORANGE
MUSIC_NOTE_COLOR = MAT_AMBER
DEAD_CELL_COLORS = BLUE_GREY
GRID_COLOR = BLUE_GREY
HIGHLIGHT_COLOR = BLUE_GREY_HIGH

# Global initialization
pygame.init()
pygame.display.set_caption("The Music of Life")
DISPLAYSURF = pygame.display.set_mode(resolution, RESIZABLE)
the_grid = SquareGridUI(DISPLAYSURF, board_size, resolution[0], gaps)
the_game = GameOfLife(board_size, board_size)
the_game.random_grid_init()

audio = LifeAudio()
current_column = 0
column_dir = 1
current_row = 0
row_dir = 1
paused = False

def toggle_pause():
    global paused
    paused = not paused

def increase_speed():
    global time_per_col
    if time_per_col > .05: