Modified playing loop and added a check per update to adjust button disabled/enabled state

Fixes #35.
Also fixes https://github.com/chetan51/nupic.cerebro2/issues/38.