 
 func ==(lhs: SKTilemapObject, rhs: SKTilemapObject) -> Bool {
     return lhs.hashValue == rhs.hashValue
-}+}

    
    /** The position of this object as taken from the .tmx file */
    let position: CGPoint
    
    /** The coordinate the position of this object is at on the map */
    var coord: CGPoint {

        
        self.id = Int(id)!
        self.position = CGPoint(x: Int(x)!, y: Int(y)!)
        self.invertedPosition = CGPoint(x: Int(x)!, y: Int((objectGroup.tilemap.size.height-1) * objectGroup.tilemap.tileSize.height) - Int(y)!)
        
        if let width = attributes["width"] where (Int(width)) != nil,
            let height = attributes["height"] where (Int(height) != nil) {
