Adding touchesEnded event handler