Fixed syntax error and added more branches to the gesture network