Refactoring and added playerCreator