Minesweeper (Javascript Implementation)