         let newCookies = level.shuffle()
         scene.addSpritesForCookies(newCookies)
     }
-    
+    required override init(coder aDecoder: NSCoder) {
+        super.init(coder: aDecoder)
+    }
+    override init() {
+        super.init()
+    }
     override func viewDidLoad() {
         super.viewDidLoad()
         

}

class GameViewController: UIViewController {

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    var level:Level!
    var scene: GameScene
    
    func beginGame() {
        shuffle()

        scene = GameScene(size: skView.bounds.size)
        scene.scaleMode = .AspectFill
        
        level = Level()
        scene.level = level
        
        
        /// Add the sprites
        beginGame()
        
        
        skView.presentScene(scene)
        
