Use pieces() instead of piece_on()

It is shorter and simpler.

No functional change.