Completed function to compare all the values of object A vs object B