 import FlatUIColors
 
 class AATrickViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout {
+    // Properties
     let cellReuseID:String = "cellReuseID"
-
+    private let numCols = 4
+    private let numRows = 8
+
+    // Objects
     //Model
     let deck = AATDeckModel.sharedDeck
     
     //Views
     var cardViews = [CardID:ABSwipeableCardView]()
-    private let numCols = 4
-    private let numRows = 8
     
     //Controller-Logic
     var voteTally = [Int:Bool]()

    
    - returns: ABSwipeableCardView
    */
    func produceCardView()->ABSwipeableCardView {
        let cardView = ABSwipeableCardView(superView: view)
        cardView.backgroundColor = FlatUIColors.randomFlatColor()
        let collectionView = getCollectionView()
        cardView.addSubview(collectionView)
        collectionView.frame = CGRectInset(cardView.bounds, 12, 12)
        
        return cardView
    }
    

        
        // Do any additional setup after loading the view.
        deck.reset()

        for aCardID in deck.cards.keys {
            produceCardView(aCardID)
        }
        
        print("cardViews.count = \(cardViews.count)")
        
