made it so that restart resets paused flag