Fun fact: moths don't actually fly towards flames/lights. They have an instinct to orient their backs towards the light, presumably so that they can fly parallel to the moon at night which keeps them parallel to the ground.
They don't fly into lights intentionally, instead they keep re-orienting their back to it in a tighter and tighter spiral until they hit it.
Because in real life they would have to have a walkie talkie moth on the moon and that takes too long duh.