Refactored add_player method to check if player already exists