Click a cell to open it, or right-click to flag it. You can also toggle flag mode with the button. The goal is to open all safe cells (mines are hidden). A loss occurs if a mine is opened.