created gestures and rules, tested in jasmine