press space while hovering over a square to put a flag on it. the flag is a blue 'x'.
credit to the original minesweeper