Hanoi: cycle colors so indexing is not partial

Prompted by an email from Friedrich Wiemer.