void Team::expandTeam()
{
    if((this->capacity - this->nrOfPlayers)< 2)
    {
        this->capacity +5;
        Player **temp = new Player*[this->capacity];
        for(int i = 0; i<this->nrOfPlayers;i++)
           {
              temp[i] = this->team[i];
           }
       delete[]this->team;
       team = temp;
    }
}