For those who are having trouble I would recommend focusing on... (1) resource production, (2) one powerful unit to spam in defence, (3) castle (upgrades and towers) and lastly a balanced army to take them out. Also if you switch to attack while defending your melee units won't run back and forth every time they kill something. That worked for me good luck on your botd!