I agree with the above as the only way to colour the puzzle correctly, but I thought the preamble was misleading, if not downright wrong, as it's not clear that cells can contain 3 letters, as they must for it to work. But I don't have the puzzle to hand, so I may have misread it!