Javascript minesweeper game