There is an sploit. In one line of code I wrote red instead of blue and made the blue castle harm the blue player instead of the red one when the red soldier attacks it. So red attacks with a soldier from a side of the castle, he will win 100%
I'll have to wait until the Jam ends to update the game. I'll also have to fix a couple collisions.