Added logic for setting the player's name
Added logic for setting player name