compute the mine distribution of a 3*3 grid game