Fixed Function for adding a player in a team