-- This version returns either the existing player or the new player ID, -- requiring the client to create the PlayerModel "from scratch" playerNeedingNameNewVersion : Maybe PlayerModel -> List PlayerModel -> Either PlayerId PlayerModel playerNeedingNameNewVersion selectedPlayer players = selectedPlayer |> Either.rightFromMaybe (nextNumericId (List.map .id players))