replaced while loop with timer interval
modified play module