Help with LED matrix with 1017 decade counter

Make sure that you use 4017 chips, not 1017.

Please show your sketch, and describe what it should do and really does.