Self-propelled stacking machine