I didn't use colour coding. This is pure programming. Basically, I used scripts to check if the mouse is in a particular region. Simple!