I might have messed up the formula for the enemy's speed because I was trying to make it so the enemy is always a tiny bit slower than the player but I guess it somehow made the enemy's speed negative or something. Thanks for playing nonetheless!
Edit: Yes it was in fact the formula. In my attempt to make it "better" I did something stupid like changing Y by ([speed variable] - 0.5) * enemySpeedMultiplier when I could've just had one variable for speed - 0.5 and increasing the speed by 0.25 or something similar.