initializing swipedir in touchEnd function