You can simplify this code using some Ruby coolness.

Given that `nil.to_i == 0`

And

```ruby
array = [5, 6, 7]
array.slice! nil.to_i
=>[5]
array
=>[6,7]
```

We could deal with conf wether it is a number, or zero:

Remove these lines:
```ruby
conf = remaining_points.index(start_point)
if conf.nil?
  route << remaining_points.slice!(0)
else
  route << remaining_points.slice!(conf)
end
```

And replace with this one liner
```ruby
route << remaining_points.slice! remaining_points.index(start_point)
```