       console.log "You got eaten!"
 
 
-
-sharkAttackApp.controller('SharkAttackCtrl', ['$scope', '$interval', ($scope, $interval) ->
+sharkAttackApp.controller('SharkAttackCtrl', ['$scope', ($scope) ->
 
   #TODO make these do something
   $scope.width = 400

    # Then check to see if the raft collides with a shark
    for shark in $scope.sharks
      unless shark.hasAttacked
        if shark.top-20 < $scope.raft.top < shark.top+20 and \
           shark.left-20 < $scope.raft.left < shark.left+20
          shark.hasAttacked = true
          $scope.raft.takeBite()

  #TODO cancel this once the game is over, same for the other one too
  #$interval($scope.update, 10)

  $scope.frame = ->
    $scope.$apply ->

  $scope.goRight = false

  $scope.raft = new Raft()
  $scope.sharks = []

  $scope.dt = 0
