Simple JavaScript minesweeper game