def change_direction(current, next):
    """ Convenience function that returns
            1 if next < current,
            0 if next == current,
            -1 if next > current
    """
    if next > current:
        return -1
    elif next == current:
        return 0
    else:
        return 1