Overriding the touchBegan function