The first 8 waves are hand crafted, after that they are random and can get unbalanced. If you are having trouble before wave 8 (The boss like enemy spawns last in that wave) remember to upgrade your towers, it's really effective (And smashing viruses with the stick is quite effective too.)