Replacing gesture recognition if statements with stuff that uses the trie. Currently blocked on calculating the delta