clear button is deactivated now while loop is playing
loop is restartable now after clear button is pressed