         self.cardHeight = cardHeight
         self.cardWidth = cardWidth
 
+        self.gradientShader = gradientShader
+
         self.log = log
-        self.gradientShader = gradientShader
 
     }
     

    let gradientShader:SKShader

    let log:OSLog
    // a player model
    var player:Player


    var node:SKNode

    /*
     * initializes a Player controller from a player model, a remote database reference and a sprite node
     */
    init (player:Player, reference:DatabaseReference, isLocal:Bool, node:SKNode, playerTop:CGFloat, tableWidth:CGFloat, handSpace:CGFloat, cardSpace:CGFloat, cardHeight:CGFloat, cardWidth:CGFloat, gradientShader:SKShader, log:OSLog) {

        self.player = player
        self.reference = reference
