How can I use color that way...

You need to show code. I don’t care what you believe you did, but what you actually did. If you think there is something wrong with your results, it’s probably due to a mistake.

Nobody wants to have bugs in their code, so it has to be due to mistakes being made, no? And if everyone makes mistakes, let’s start from there. Show us the code that is 100% sure to contain a mistake, then describe that with your flawless reasoning. Not the other way around.

Oh and please make sure to use code tags for your code.