Adding intelligent color mode

Fixed ALL the bugs o/