Optimized code and swapped the hint-colors