colour picking logic