 import Foundation
 import SpriteKit
 
-class DLSpriteKitTimer {
-    init(usingLabel label: SKLabelNode, seconds: Int, withActionPersecond: (() -> ())?, withFiringAction: () -> (), decreasing: Bool) {
+class DLSpriteKitTimer: SKLabelNode {
+    init(seconds: Int, withActionPersecond: (() -> ())?, withFiringAction: () -> (), decreasing: Bool) {
         self.running = false
-        self.label = label
         self.actionPerSecond = withActionPersecond
         self.firingAction = withFiringAction
         self.decreasingTime = decreasing
+        
         if self.decreasingTime {
             self.firstSecond = seconds
             self.lastSecond = 0

        timerAction = SKAction.repeatActionForever(SKAction.sequence([actionwait,actionForEverySecond(actionPerSecond)]))
        
        if let timerAction = timerAction {
            label.runAction(timerAction, withKey: "timer")
        }
    }
    
    func pause() {
        running = false
        label.removeActionForKey("timer")
    }
    
    func stop() {


    private var counter: Int {
        didSet {
            self.text = String(counter)
        }
    }
    
