                         )}
         )
     }
+
+    private func addGesture(to view: UIView, goto direction: Direction, center: CGPoint, screenSize: CGSize) {
+        var tapGesture = UITapGestureRecognizer()
+        
+        view.addGestureRecognizer(tapGesture)
+        tapGesture.rx.event.subscribe(onNext: { _ in
+            self.scaleAnimateView(view: view)
+            
+            guard self.isCenter else {
+                self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2,
+                                                         y: center.y - screenSize.height / 2),
+                                                 animated: true)
+                self.isCenter = true
+                return
+            }
+            
+            switch direction {
+            case .up:
+                self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2,
+                                                         y: 200),
+                                                 animated: true)
+            case .right:
+                self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2 + screenSize.width - 100,
+                                                         y: center.y - screenSize.height / 2),
+                                                 animated: true)
+            case .down:
+                self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2,
+                                                         y: center.y - screenSize.height / 2 + screenSize.height - 275),
+                                                 animated: true)
+            case .left:
+                self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2 - screenSize.width + 100,
+                                                         y: center.y - screenSize.height / 2),
+                                                 animated: true)
+            case .none:
+                print("fuck you")
+            }
+            self.isCenter = false
+        })
+            .disposed(by: disposeBag)
+    }
     
     private func setupRoundedViews(center: CGPoint, screenSize: CGSize) {
-        func addGesture(to view: UIView, goto direction: Direction) {
-            var tapGesture = UITapGestureRecognizer()
-
-            view.addGestureRecognizer(tapGesture)
-            tapGesture.rx.event.subscribe(onNext: { _ in
-                self.scaleAnimateView(view: view)
-                
-                guard self.isCenter else {
-                    self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2,
-                                                             y: center.y - screenSize.height / 2),
-                                                     animated: true)
-                    self.isCenter = true
-                    return
-                }
-                
-                switch direction {
-                case .up:
-                    self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2,
-                                                             y: 200),
-                                                     animated: true)
-                case .right:
-                    self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2 + screenSize.width - 100,
-                                                             y: center.y - screenSize.height / 2),
-                                                     animated: true)
-                case .down:
-                    self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2,
-                                                             y: center.y - screenSize.height / 2 + screenSize.height - 275),
-                                                     animated: true)
-                case .left:
-                    self.scrollView.setContentOffset(CGPoint(x: center.x - screenSize.width * 3 / 2 - screenSize.width + 100,
-                                                             y: center.y - screenSize.height / 2),
-                                                     animated: true)
-                case .none:
-                    print("fuck you")
-                }
-                self.isCenter = false
-            })
-            .disposed(by: disposeBag)
-        }
-        
-        addGesture(to: 同じ高校View, goto: .up)
-        addGesture(to: 同じ誕生日View, goto: .left)
-        addGesture(to: 同じ出身地View, goto: .right)
-        addGesture(to: 同じ所在地View, goto: .down)
+        addGesture(to: 同じ高校View, goto: .up, center: center, screenSize: screenSize)
+        addGesture(to: 同じ誕生日View, goto: .left, center: center, screenSize: screenSize)
+        addGesture(to: 同じ出身地View, goto: .right, center: center, screenSize: screenSize)
+        addGesture(to: 同じ所在地View, goto: .down, center: center, screenSize: screenSize)
     }
     
     private func setupScrollView(to point: CGPoint, screenSize: CGSize) {


            ProgressHUD.dismiss()
        }
    }
    
    private enum Direction {

        return .identifier(className)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        ProgressHUD.show(title: "Facebookからデータを\n読み込んでいます", ignoreInteraction: true)
