so I'm working on some homework for uni and it's my first time making a game (and first time really using what we learnt in the past 3 day week) and I can't get level 2 to work.
I've got level 1 working fine but when I try doing level 2 where the only difference is there are 4 enemies it always just fails/ says you lost.
as you can see in screenshot 1 it works perfectly fine, correctly identifying you hit the enemy and then saying the 'victory prompt'
but as shown in screenshot 2 it says that it succeeds but still gives the failure prompt (and it gives it twice which I also can't diagnose)
(also super sorry for the long lines of code, I have a really big monitor (like 49 inches) so I've not gotten into the habit of writing shorter code lines, this is something I'm working on getting better at)