Bacteria battle: How one changes appearance, moves away to resist the other