def METHOD_NAME(res, finder):
    print("Starting solving algorithm")
    word = finder.word_to_try
    # Compare the word with the results of the wordle
    for letter in range(len(word)):
        # Case when the status of the letter is "correct"
        if res[letter] == 1:
            print(f"Letter {word[letter]} is correct")
            finder.word[letter] = word[letter]
            print(finder.word)
            if word[letter] in finder.absent_letters:
                finder.absent_letters.remove(word[letter])
        # Case when the status of the letter is "present"
        # (present but at the wrong position)
        elif res[letter] == 0:
            print(f"Letter {word[letter]} is present")
            finder.present_letters.add(word[letter])
            # We keep all the words that don't match
            # the pattern of the word entered
            finder.possible_words = list(
                filter(lambda x_word:
                       not check_match(word[letter], x_word[letter]),
                       finder.possible_words))
        else:  # Case when the status of the letter is "absent"
            print(f"Letter {word[letter]} is absent")
            if word[letter] not in finder.present_letters:
                finder.absent_letters.add(word[letter])
            # We keep all the words that don't match
            # the pattern of the word entered
            finder.possible_words = list(
                filter(lambda x_word:
                       not check_match(word[letter], x_word[letter]),
                       finder.possible_words))
    print("\n")
    print("Updating list of possible words ...")
    # Update list of words
    for absent in finder.absent_letters:
        finder.possible_words = list(
            filter(lambda x_word:
                   not check_letter_in_word(absent, x_word),
                   finder.possible_words))
    for present in finder.present_letters:
        finder.possible_words = list(
            filter(lambda x_word:
                   check_letter_in_word(present, x_word),
                   finder.possible_words))
    for i in range(len(finder.word)):
        if finder.word[i] != "":
            finder.possible_words = list(
                filter(lambda x_word:
                       check_match(x_word[i], finder.word[i]),
                       finder.possible_words))
    # Update the next word to try
    finder.word_to_try = finder.possible_words[0]
    print("List of possible words updated !\n")
    print("Letter not in the right position : ", finder.present_letters)
    print("Letters with absent status : ", finder.absent_letters)
    print("List of words : ", finder.possible_words)
    print("Length of list", len(finder.possible_words))