 //  Copyright © 2016 Jayesh Kawli Backup. All rights reserved.
 //
 
+import BlocksKit
 import Foundation
 import UIKit
 
 class GameHomePageViewController: UIViewController {
     
     let viewModel: GameHomePageViewModel
+    var dynamicAnimator: UIDynamicAnimator!
+    var gravityBehaviour: UIGravityBehavior!
+    var dynamicItemBehaviour: UIDynamicItemBehavior!
     
     init(viewModel: GameHomePageViewModel) {
         self.viewModel = viewModel

        gameStartButton.setTitleColor(.blackColor(), forState: .Normal)
        self.view.addSubview(gameStartButton)
        
        let views = ["gameStartButton": gameStartButton]
        
        self.view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|-[gameStartButton]-|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views))
        self.view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|-100-[gameStartButton(44)]", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views))
        
        RACObserve(viewModel, keyPath: "productsLoading").deliverOnMainThread().subscribeNext { (loading) in
            if let loading = loading as? Bool {

    }
    
    override func viewDidLoad() {
        
        dynamicAnimator = UIDynamicAnimator(referenceView: self.view)
        self.view.backgroundColor = UIColor.whiteColor()
        let activityIndicatorView = UIActivityIndicatorView()
        activityIndicatorView.translatesAutoresizingMaskIntoConstraints = false
