Refactored code, added deck_id field to rounds, moved code out of controller and into models.