detect if a near by tablet crosses another one
added some hsv color functions