A minesweeper clone in javascript