Be sure that a mine is created with a probability of 10%. Whats wrong in my code?