fix color comparison function not seeing black and transparent as different. idiot js