     private var numberOfPalettes = 1
     private var numberOfColorsPerPalette: Int = 1
     
-    private var widthPerTile: CGFloat = 0
-    private var heightPerTile: CGFloat = 0
+    private var widthPerBox: CGFloat = 0
+    private var heightPerBox: CGFloat = 0
     private var numberOfRows = 1
-
+    
+    var boxSelected: (Int, Int) = (0,0)
+    var boxSelectionSize = 1
+    
     required init?(coder: NSCoder) {
         super.init(coder: coder)
     }

        }
        
        self.numberOfPalettes = palettes.count
        widthPerTile = self.frame.size.width/CGFloat(numberOfColorsHorizontally)
        
        //TODO: Must round in case of odd number
        let numberOfPalettes = numberOfColorsHorizontally/numberOfColorsPerPalette

        }
        
        let remainingColors = (self.numberOfPalettes*self.numberOfColorsPerPalette)%numberOfColorsHorizontally
        var numberOfRows = (self.numberOfPalettes*self.numberOfColorsPerPalette)/numberOfColorsHorizontally
        if remainingColors != 0 {
            self.numberOfRows = numberOfRows + 1
        } else {
            self.numberOfRows = numberOfRows
        }
        
        if useFullView {
            heightPerBox = self.frame.size.height/CGFloat(numberOfRows)
        } else {
            //TODO: must remove hardcoded value
            self.numberOfRows = 16
            heightPerBox = self.frame.size.height/CGFloat(self.numberOfRows)
            widthPerBox = self.frame.size.width/CGFloat(8)
        }
    }
    
