fixed getAllPlayers method