Sine: improve touch detection

Before, it would silence the tone if a touch ended regardless of whether
or not there were still other touches on the screen.