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

        let newCookies = level.shuffle()
        scene.addSpritesForCookies(newCookies)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        

}

class GameViewController: UIViewController {
    
    var level:Level!
    var scene: GameScene!
    
    func beginGame() {
        shuffle()
