Updates range detection

The code was always running the inefficient '.include?' instead of
'.cover?' from what I can tell.
Merge pull request #1 from JPrevost/range_detection_fix

Updates range detection