minesweeper: cleaned up flag-handling logic; added armed neighbor counter