 class GameObject{
     //Declarations
     let sprite : SKSpriteNode;
+    var name : String = "";
     
     var size: CGSize{
     get{return sprite.size;}

    get{return sprite.position.y}
    set{sprite.position.y = newValue}
    }
    var top: CGFloat{
    get{return sprite.position.y + (sprite.size.height * sprite.anchorPoint.y)}
    set(newValue){sprite.position.y = newValue - (sprite.size.height * sprite.anchorPoint.y)}

    get{return sprite.position}
    set(newValue){sprite.position = newValue}
    }
    //Shorter ways to access x and y of the position
    var x: CGFloat{
    get{return sprite.position.x}
    set{sprite.position.x = newValue}
