Gray sequence (really awful puzzle)