Wow, you reached wave 41! Thanks for playing my game.
My initial plan was to use pathfinding for every enemy, but by wave 5 it started lagging, so I changed it to 'Move towards the position' to optimize it a little bit. Now it lasts for 41 waves before crashing. I think I can further optimize it after this jam.
Thanks for the feedback!