Function getAllPlayers