     
     
     func creatWalls() {
+        
+        let scoreNode = SKSpriteNode()
+        
+        scoreNode.size = CGSize(width: 1, height: 200)
+        scoreNode.position = CGPoint(x: self.frame.width/2, y: self.frame.height/2)
+        scoreNode.physicsBody = SKPhysicsBody(rectangleOfSize: scoreNode.size)
+        scoreNode.physicsBody?.affectedByGravity = false
+        scoreNode.physicsBody?.dynamic = false
+        scoreNode.physicsBody?.categoryBitMask = PhysicsCatagory.Score
+        scoreNode.physicsBody?.collisionBitMask = 0
+        scoreNode.physicsBody?.contactTestBitMask = PhysicsCatagory.Ghost
         
         wallPair = SKNode()
         

        
        self.addChild(ghost)

    }
    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {

import SpriteKit

struct PhysicsCatagory {
    static let Ghost    : UInt32 = 0x1 << 1
    static let Ground   : UInt32 = 0x1 << 2
    static let Wall     : UInt32 = 0x1 << 3
    static let Score    : UInt32 = 0x1 << 4
}


class GameScene: SKScene, SKPhysicsContactDelegate{
    
    var ground = SKSpriteNode()
    var ghost = SKSpriteNode()
