refactored the way players and invited players work