Updates range detection

The code was always running the inefficient `.include?` instead of
`.cover?` from what I can tell.