Fixes chetan51/nupic.cerebro2#35. 

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