I don't think you need to create pairs; as long as the sum of the whole board adds to a multiple of 10, that should do it!
edit: don't listen to me, this doesn't work
Agreed that would be good/better as well