Minesweeper in c++