Your not considering the scenariio when middle peson and front man both have worn black hats.
Last person sees 2 blacks and yet unaware of his colour. He says i dont know. middle person can not be sure either
w W SOLVED BY LAST PERSON
W B CAN ONLY BE SOLVED BY FIRST PERSON
B B CAN ONLY BE SOLVED BY FIRST PERSON
B W Middle man solves