Decision-making process of viruses could lead to new antibiotic treatments