press f for flag and d for dig. revealed squares display the number of mines in the surrounding 8 squares