     func dragCardsToPosition(position : CGPoint, animate : Bool) {
         if !animate {
             CATransaction.begin()
-            CATransaction.setValue(kCFBooleanTrue, forKey: kCATransactionDisableActions)
+            CATransaction.setDisableActions(true)
         }
         draggingCardLayer!.position = position
         if let draggingFan = draggingFan {

                    touchStartPoint = touchPoint
                    touchStartLayerPosition = cardLayer.position
                    CATransaction.begin()  // do not animate z-position change
                    CATransaction.setValue(kCFBooleanTrue, forKey: kCATransactionDisableActions)
                    cardLayer.zPosition = topZPosition++
                    draggingFan = solitaire.fanBeginningWithCard(card)
                    if let draggingFan = draggingFan {

    
    func moveCardLayerToTop(cardLayer : CardLayer) {
        CATransaction.begin()  // do not animate z-position change
        CATransaction.setDisableActions(true)
        cardLayer.zPosition = topZPosition++
        CATransaction.commit()
    }
