2048 automation using js simulate swipe action