Practicing JavaScript: Minesweeper game