minor refactoring; add optional connection argument to create-player method