added swipe listener and some change with snake's head