public void CheckAndFixTeams()
    {
        MyLib.ArrayRemoveDuplicates(ref _enemyTeams);
        MyLib.ArrayRemoveDuplicates(ref _alliedTeams);
        MyLib.ArrayRemoveDuplicates(ref _neutralTeams);

        MyLib.ArrayRemoveOne(ref _enemyTeams, this);
        MyLib.ArrayRemoveOne(ref _neutralTeams, this);

        int index = _alliedTeams.FindIndex(this);

        if (index == -1)
        {
            MyLib.ArrayInsert(ref _alliedTeams, this, 0);
        }
        else
        {
            _alliedTeams[index] = _alliedTeams[0];
            _alliedTeams[0]     = this;
        }
    }