refactored initialization of players