For the green boss you can just camp in the corner and win easily.
You can do that with the purple one too, it's much less likely to get hit, but still more likely than the green boss.