Refactoring for player linked list