I have this function client_choice() which returns the stored value of dom elements if conditions are met
it iterates over each key and value , the keys and values a