Final version. Not fully working the gesture detection