changeName
Changes a player's name in the game state.
Return
A new GameState with the player's name updated.
Parameters
newName
The new name for the player.
pieceType
The piece type of the player whose name should be changed.
Changes a player's name in the game state.
A new GameState with the player's name updated.
The new name for the player.
The piece type of the player whose name should be changed.