Minesweeper Javascript