     removePlayer: (player) ->
       console.log "Removing player!"
       for wall in @allWalls()
-        if wall.player == player and @walls[wall.orientation].indexOf(wall) != -1
+        if wall.player == player
           console.log "Wall gone!"
           @walls[wall.orientation].splice(@walls[wall.orientation].indexOf(wall), 1)
 


    intersection_with: (segment) ->
      if segment.orientation == @orientation
        throw new Error('The segments must have different orientations')

      intersection = fabric.Intersection.intersectLineLine(@startpoint, @endpoint, segment.startpoint, segment.endpoint)
      return [this, segment, intersection.points[0]] if intersection.status == "Intersection"

      last_wall = @most_recent_walls[player_no]
      if last_wall? and segment.orientation == last_wall.orientation
        last_wall.extend(segment)
        console.log "Walls: ", @walls[segment.orientation]
        @most_recent_walls[player_no] = last_wall
      else
        console.log "Walls 2: ", @walls[segment.orientation]
        if last_wall?
          last_wall.truncate(segment)
        @most_recent_walls[player_no] = segment
