Replace touchesEnded: with gestures.