   }
   
   func handleSwipe(swipe: UISwipeGestureRecognizer) {
-    let direction:DirectionsType = swipe.direction.translateToDirection()
+    let direction: DirectionsType = swipe.direction.translateToDirection()
     let result = DirectionsManager.sharedInstance.validateDirection(direction)
     self.scoreManager?.calculateScore(result)
     self.updateScoreView()

import UIKit

class GameBoardViewController: UIViewController {

  @IBOutlet weak var directionsViewHeight: NSLayoutConstraint!
  @IBOutlet weak var directionsViewWidth: NSLayoutConstraint!
  @IBOutlet weak var directionsViewAxisX: NSLayoutConstraint!

      directions.setup()
      self.directionsView.addSubview(directions)
      directions.translatesAutoresizingMaskIntoConstraints = false
      directions.pin(self.directionsView, direction: .Left)
      directions.pin(self.directionsView, direction: .Right)
      directions.pin(self.directionsView, direction: .Up)
      directions.pin(self.directionsView, direction: .Down)
    }
  }
  
  func setRandomPosition() {
    let randomSquareSize = Int.random(self.minDirectionViewSquare...self.maxDirectionViewSquare)
    
    let maxX = Int(self.view.frame.size.width) - randomSquareSize
    let maxY = Int(self.view.frame.size.height - CGFloat(self.topBarHeight)) - randomSquareSize
    
    let randomX = Int.random(1...maxX)
    let randomY = Int.random(1...maxY)
