Added function to get the team name of a player