The numbers reveal how many mines are around that square, including diagonals. Click to reveal. 0, 1, and q to flag. Space still works. There are definitely bugs. I am keeping the part about you can flag numbers because funny. Oh, and sorry that the first click isn't always on a 0. BUT 0s automatically clear now! Massive thanks BCMGF1137/19! And to the 2 people that are wondering, I did not actually decide the colors for 9 and above.
c2a