@trincot, assuming that q5 is the final (accepting) state of your Turing machine above (given in JavaScript transitions), does it mistakenly accept aabcbc ?
q5
transitions
aabcbc