yeah it is what i said.
ok, so the second man will be answering most likely
the first man looks to his right, and if he sees two of the same color, for example white, then he knows he must be black and blurts it out
if the 10 minutes passes and the first man has not said anything, then the second man knows that him and the third man must have different colored hats, so he must be the opposite of whatever the man to his right is, and says that.
ie first doesnt talk, second looks to his right, sees black, and knows for certain that he is white, blurts out white, they are all freed