Figured it out and beat the game!
I knew it had something to do with the lava tiles, but it was super easy to miss the frogs eating the flies. Maybe you could have an animation of them shooting their tongues out to catch the flies and increase the range for this interaction to happen?