I'm trying to design a Turing machine of the following specification:
Let Σ = {a, b}. Given a non-broken string composed of $a$'s and $b$'s, convert every contiguous string of two or more $b$’s to $a$’s, changing nothing else. Concretely, the string ‘$abbbbababb$’ is changed into ‘$aaaaaabaaa$.' The machine halts at the first blank square.
I can use a maximum of five states. Currently the two-or-more bit is throwing me off; when I try to flow-diagram the machine it gets quite complicated. Some guidance would be appreciated.