Classic minesweeper game in JS