         return playerSprite
     }
     
-    func createObstacleNode(obstacle: Obstacle) -> SKSpriteNode {
+    func createObstacleNode(obstacle: Obstacle) -> ObstacleSpriteNode {
         let obstacleSprite = ObstacleSpriteNode(obstacle: obstacle)
         grid.addChild(obstacleSprite)
         return obstacleSprite
     }
-
+    
+
+    // ==============================================
     // MARK: Gesture handling methods
+    // ==============================================
 
     private func setupGestureRecognizers(view: SKView) {
         jumpRecognizer = UISwipeGestureRecognizer(target: self,

        grid.addChild(scoreNode)
    }
    
    // MARK: Rendering

    private func createEnvironmentNode(environment: Environment) -> EnvironmentSpriteNode {
        let environmentSpriteNode = EnvironmentSpriteNode(environment: environment)


class GameScene: SKScene {

    // ==============================================
    // MARK: Properties
    // ==============================================

    private let countdownNode = CountdownNode()
    private var hasGameStarted = false
    
