The buildings should be separated from all defenses and traps. Tutorial and screenshots of how your base should look are here: https://farmwaralliance-d65627.ingress-daribow.ewp.live/base-design