Minesweeper Javascript clone