fix bug in adding card to discard pile