Mistake. Didn't you leave space for stacks of fish and air elementals?
Yeah. But those stacks are much larger. Usually, either a large stack pushes out a weak one, or the single units combine into one stack. By the way, is there anywhere to read about this algorithm?