Add working version of TuringMachine class.