Classic Minesweeper in JS