Scientists have discovered that hermit crabs are great at cooperating. When a crab looking for a larger shell finds an empty one that’s too large, it will wait at the shell for hours. Eventually, other crabs crawling around the area show up.
Once the crabs are together, they line up according to size, with the biggest crab first. The big crab moves into the empty shell, abandoning its own. Then, one by one, the rest of the crabs quickly move into the next-largest empty shell. If all goes well, all the crabs end up with new shells that better fit their growing bodies.