minor refactoring, infinite left test
Merge branch 'master' of https://github.com/stepzhou/tm-simulator