reverted back to modified version of original gesture recognition, built in gesture recognition is considerably slower and less accurate at the moment