A game of minesweeper using javascript