Changed Player factory method to return null when name input canceled