Changed color detector back to return int*