// Determine which word that appears the maximum amount of times before or after the current word
        public void GetWordStats(ref int max, ref string word, WORDTYPE wordType = WORDTYPE.PREVIOUS)
        {
            max  = 0;
            word = "";

            switch (wordType)
            {
            case WORDTYPE.PREVIOUS:
                CalculateStats(ref max, ref word, ref _previousWords);
                break;

            case WORDTYPE.NEXT:
                CalculateStats(ref max, ref word, ref _nextWords);
                break;
            }
        }
    /**
     * Fonction lancée par le bouton NextButton, et permet de passer à l'étape suivante de l'histoire
     * Next Step - Sian
     */
    public void NextStep()
    {
        switch (storyPart)
        {
        case STORYPART.PART_0:
            storyPart = STORYPART.PART_1;
            break;

        case STORYPART.PART_1:
            storyPart = STORYPART.PART_2;
            break;

        case STORYPART.PART_2:
            storyPart = STORYPART.PART_3;
            break;

        case STORYPART.PART_3:
            storyPart = STORYPART.PART_4;
            break;

        case STORYPART.PART_4:
            storyPart = STORYPART.PART_5;
            break;

        case STORYPART.PART_5:
            storyPart = STORYPART.PART_6;
            break;

        case STORYPART.PART_6:
            storyPart = STORYPART.PART_7;
            break;

        case STORYPART.PART_7:
            storyPart = STORYPART.PART_8;
            break;

        case STORYPART.PART_8:
            storyPart = STORYPART.PART_9;
            break;

        case STORYPART.PART_9:
            storyPart = STORYPART.PART_10;
            break;

        case STORYPART.PART_10:
            storyPart = STORYPART.PART_11;
            break;

        case STORYPART.PART_11:
            if (resultPanel.activeInHierarchy == false)
            {
                resultPanel.SetActive(true);
                sentencePanel.SetActive(false);
                ShowMustGoOn();
            }
            else
            {
                resultPanel.SetActive(false);
                sentencePanel.SetActive(true);
                storyPart       = STORYPART.PART_0;
                currentWordType = WORDTYPE.SUBJECT;
                tryNumber++;
                tryNumberText.text = tryNumber.ToString();
                hero1WordPlayerList.Clear();
                hero2WordPlayerList.Clear();
                hero3WordPlayerList.Clear();
            }
            break;
        }

        nextButton.SetActive(false);
        NewStory(storyPart);
    }
    /**
     * Appelée lorsqu'on clique sur un mot à choisir
     * We Choose - Her
     */
    public void WeChoose(int choiceIndex)
    {
        switch (storyPart)
        {
        case STORYPART.PART_0:
            break;

        case STORYPART.PART_1:
            if (currentWordType == WORDTYPE.SUBJECT)
            {
                currentSentence.Add(subject[choiceIndex]);
                subjectChoosed  = subject[choiceIndex];
                chosenWord      = subject[choiceIndex];
                currentWordType = WORDTYPE.PASTVERB;
            }
            else if (currentWordType == WORDTYPE.PASTVERB)
            {
                currentSentence.Add(pastVerb[choiceIndex]);
                chosenWord      = pastVerb[choiceIndex];
                currentWordType = WORDTYPE.COMPLEMENT;
            }
            else if (currentWordType == WORDTYPE.COMPLEMENT)
            {
                currentSentence.Add(complement[choiceIndex]);
                complementChoosed = complement[choiceIndex];
                chosenWord        = complement[choiceIndex];
                currentWordType   = WORDTYPE.LOCATION;
            }
            else if (currentWordType == WORDTYPE.LOCATION)
            {
                currentSentence.Add(location[choiceIndex]);
                chosenWord      = location[choiceIndex];
                currentWordType = WORDTYPE.INFVERB;
                Disabled();
                nextButton.SetActive(true);
            }

            hero1WordPlayerList.Add(chosenWord);
            FillTheCrown(chosenWord, boxIndex);
            boxIndex++;
            break;

        case STORYPART.PART_2:
            break;

        case STORYPART.PART_3:
            if (currentWordType == WORDTYPE.INFVERB)
            {
                currentSentence.Add(infVerb[choiceIndex]);
                infVerbChoosed  = infVerb[choiceIndex];
                chosenWord      = infVerb[choiceIndex];
                currentWordType = WORDTYPE.P_PRESENTVERB;
            }
            else if (currentWordType == WORDTYPE.P_PRESENTVERB)
            {
                currentSentence.Add(pPresentVerb[choiceIndex]);
                chosenWord      = pPresentVerb[choiceIndex];
                currentWordType = WORDTYPE.BODYPART;
            }
            else if (currentWordType == WORDTYPE.BODYPART)
            {
                currentSentence.Add(bodypart[choiceIndex]);
                bodypartChoosed = bodypart[choiceIndex];
                chosenWord      = bodypart[choiceIndex];
                currentWordType = WORDTYPE.ADJECTIVE;
            }
            else if (currentWordType == WORDTYPE.ADJECTIVE)
            {
                currentSentence.Add(adjective[choiceIndex]);
                adjectiveChoosed = adjective[choiceIndex];
                chosenWord       = adjective[choiceIndex];
                currentWordType  = WORDTYPE.P_PASTVERB;
                Disabled();
                nextButton.SetActive(true);
            }

            hero2WordPlayerList.Add(chosenWord);
            FillTheCrown(chosenWord, boxIndex);
            boxIndex++;
            break;

        case STORYPART.PART_4:
            break;

        case STORYPART.PART_5:
            if (currentWordType == WORDTYPE.P_PASTVERB)
            {
                currentSentence.Add(infVerb[choiceIndex]);
                chosenWord      = pPastVerb[choiceIndex];
                currentWordType = WORDTYPE.COMPLEMENT2;
            }
            else if (currentWordType == WORDTYPE.COMPLEMENT2)
            {
                currentSentence.Add(pPresentVerb[choiceIndex]);
                complement2Choosed = complement2[choiceIndex];
                chosenWord         = complement2[choiceIndex];
                Disabled();
                nextButton.SetActive(true);
            }

            hero3WordPlayerList.Add(chosenWord);
            FillTheCrown(chosenWord, boxIndex);
            boxIndex++;
            break;

        case STORYPART.PART_6:
            break;

        case STORYPART.PART_7:
            break;

        case STORYPART.PART_8:
            break;

        case STORYPART.PART_9:
            break;

        case STORYPART.PART_10:
            break;

        case STORYPART.PART_11:
            break;
        }

        UpdateBirthday();
    }