def global_values(flg):
    """
    Change global variables values depending on the flags given.
    """
    global GAME_NAME
    global MAX_STEPS
    global MAX_GENERATIONS
    global POPULATION_COUNT
    global MUTATION_RATE
    global FILE_NAME

    if flg.getFlagName() != None:
        GAME_NAME = flg.getFlagName()
    if flg.getFlagMove() != 0:
        MAX_STEPS = flg.getFlagMove()
    if flg.getFlagGen() != 0:
        MAX_GENERATIONS = flg.getFlagGen()
    if flg.getFlagPop() != 0:
        POPULATION_COUNT = flg.getFlagPop()
    if flg.getFlagRate() != 0.0:
        MUTATION_RATE = flg.getFlagRate()
    if flg.getFlagSave() != None:
        FILE_NAME = flg.getFlagSave()
    elif flg.getFlagLoad() != None:
        FILE_NAME = flg.getFlagLoad()
    return None