Updated the markov layer with a bugfix

Now negative probabilities will be capped to zero, and if the total sum
of all probabilities is zero, the tile will stay the same.