Adds feature: Detects gestures.
Changes code to Arduino. Processing no longer needed.