It sounds like a bug. You're supposed to lose one life, the monsters and player reset, the flowers stay the same, and you continue from there. But sometimes multiple collisions occur in a short period and you lose all your lives. One of the many things I plan to fix. I have another jam I'm doing, so it might be awhile before I can come back to this.