         subtitleNode.zPosition = 50
 
         return subtitleNode
+    }
+    
+    func scoreLabel() -> SKLabelNode {
+        scoreNode.text = generateScore()
+        scoreNode.fontSize = 13
+        scoreNode.horizontalAlignmentMode = .right
+        scoreNode.position = CGPoint(x: self.frame.maxX - 4, y:self.frame.midY + 2)
+        scoreNode.fontColor = dinoDarkColor
+        scoreNode.zPosition = 80
+        
+        return scoreNode
+    }
+    
+    func generateScore() -> String {
+        return String(format: "%07d", currentScore)
     }
     
     func dinoSprite() -> SKSpriteNode {

    
    let titleNode = SKLabelNode(fontNamed: "Courier")
    let subtitleNode = SKLabelNode(fontNamed: "Courier")
    
    override func didMove(to view: SKView) {
        print("c")

        canJump = false
        continueSpawnObstacle = false
        gameStarted = false
        shouldUpdateScore = false
        for node in self.children {
            if (node.physicsBody?.categoryBitMask == PhysicsCategory.Obstacle) {
                node.physicsBody?.velocity = CGVector(dx:0, dy:0)
