[Issue #17] Replacing set with a xrange()+1, as I am not entirely sure about the order in a set. Thanks to @DrinkingGypsie for reporting this bug.