When play button is pressed, a new thread starts and when the stop button is pressed, the threat is stopped.