Fix play function: never terminated.
Fix test case.
Merge pull request #35 from PencilCode/fixplay

Fix play function: never terminated.