Updated the algorithm for gestureDetect2.java