Initializing swipedir in touchEnd function