Added new function to set player name