first implementation of flash card app

You're indexing into `deck.cards` here - what about using SQL? Like `if Card.where(id: card.id + 1).size > 0`.

Indexing into `deck.cards` isn't a good idea because the order of `deck.cards` isn't guaranteed, also.