Added drawCard and discardCard functions