added discardCard(index)