This is similar to the Minesweeper game. Press space and click to place a flag.The orange variable tells how many flags you have left. Turn on turbo mode to make it faster.
Thanks to Austin, Anastasia, Tina and Dylan.