Got rid of IORef, fixed a bug:

* fixed logic error if player can't play a card