             frame.origin.x -= frame.size.width / 2
             return frame
         }())
-        magneticField.position = CGPoint(x: self.frame.size.width / 2, y: self.frame.size.height / 2)
+        magneticField.position = CGPoint(x: size.width / 2, y: size.height / 2)
     }
     
 //    override init(size: CGSize) {

            moving = true
            
            for node in children {
                let pushStrength: CGFloat = 1000
                
                let w = node.frame.width / 2
                let h = node.frame.height / 2

        }
        let y = CGFloat.random(node.frame.height, frame.height - node.frame.height)
        node.position = CGPoint(x: x, y: y)
        super.addChild(node)
    }
    
