def incrementAtIndex(valueList, index, max):
    """Returns True if the value incremented."""
    originalValue = valueList[index]
    valueList[index] += 1 if valueList[index] < max else 0
    return valueList[index] != originalValue