Tidy: rename distance*d() -> length()
Tidy: remove unused colourful_square()
Tidy: remove commented-out code