         
         if skip != .RIGHT
         {
-            color.darken(0.25).set()
+            rgbColor.darken(0.25).set()
             var path = NSBezierPath()
             path.moveToPoint(NSPoint(x: x    ,y: y))
             path.lineToPoint(NSPoint(x: x+w  ,y: y+s))

     
        if skip != .UP
        {
            color.set()
            let path = NSBezierPath()
            path.moveToPoint(NSPoint(x: x   ,y: y))
            path.lineToPoint(NSPoint(x: x+w ,y: y+s))

            lastDir = randint(5)
        }

        chooseNextColor()
        drawCube(skip)
        
        cubeCount += 1
    }
    
    func drawCube(skip: Side)
    {
        let (w, h) = cubeSize()
        
