Added the function for adding a player in a team