How I implemented this: Every fruit has size and age variable > Fruit listens for collisions > If anything collides check if it has same size > Remove both fruits > Create fruit in place of youngest egg :)
An age variable is an interesting idea! I came up with a different solution, basically when a fruit collides with another of the same it disables the contact monitoring of the other fruit. It works fine, but it's a bit clunky. your solution is much cleaner.