         
         let music = SKAudioNode(fileNamed: "bgMusic.wav")
         addChild(music)
+        
+        //time.fire()
         //print(self.playerNode.physicsBody?.categoryBitMask)
         //print(self.exitNode.physicsBody?.categoryBitMask)
         //print(self.jumpNode?.physicsBody?.categoryBitMask)

            gameIsPaused ? pause() : unPause()
        }
    }
    
    //MARK - collision -
    override func didMove(to view: SKView) {
        firstUnPause = true
        self.physicsWorld.gravity = CGVector.zero
        //physicsBody!.categoryBitMask = PhysicsCategory.Edge
        physicsWorld.contactDelegate = self


        exitNode = childNode(withName: "exit") as! ExitNode
        playerNode = childNode(withName:"mainball") as! PlayerNode

        view!.presentScene(scene)
    }
    
    @objc func updateTimer(){
        
        if timerNum != 0 && gameIsPaused != true {
            timerNum -= 1
        }
        
        if self.timerNum <= 0 {
            self.countDownTimer.invalidate()
            self.lose()
        }
        else {
            self.setLabel(num: "\(timerNum)")
        }
    }
    
    func setLabel(num: String) {
        self.CountdownText.text = num
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        if(gameIsPaused){
            gameIsPaused = false
