public int GetColorID() { for (int i = 0; i < COLOR.Length; i++) { if (this.GetColor().Equals(COLOR[i])){ return i; // found it } } return -1; // this is a unique color }