Released the memory of the player that was removed from team.
Rethinking tests for the functions addPlayer and removePlayer.