A Markovian model for the spread of the SARS-CoV-2 virus