further generalizing validate_and_transform_nonnegative_index to simply return the index as an integer
further generalizing validate_and_transform_nonnegative_index to simply return the index as an integer

abw333/dominoes