Replace if with ternary operator
Refactor players.xml parsing into smaller methods