public int checkGG()
    {
        boolean teamOneDefeat = true;
        for(Integer i: teamOneInd)
        {
            if(!shipList.get(i).isDestroyed())
            {
                teamOneDefeat = false;
            }
        }
        boolean teamTwoDefeat = true;
        for(Integer i: teamTwoInd)
        {
            if(!shipList.get(i).isDestroyed())
            {
                teamTwoDefeat = false;
            }
        }
        if(teamOneDefeat && teamTwoDefeat)//tie
        {
            return 3;
        }
        else if(teamOneDefeat)//team two wins
        {
            return 2;
        }
        else if(teamTwoDefeat)//team one wins
        {
            return 1;
        }
        else//no winner yet
        {
            return 0;
        }

    }