it handles exchange of cards