Refactoring of CreatePlayer.cs