Sort:  

the numbers are the quantity of mines around that square, so you have to do a simple math and use the logic