I am new for formal languages. Here is the question from the textbook. Could you give me an example of a Turing machine with two halting states, y and n, that does not decide a language ?
This is the solution according to manual.

I did not understand what machine does. Especially, when reading the input where is the tape head going right or left? Or, is this a nondeterministic machine? Could you describe what this machine does and how is this the answer of the problem?