A simplistic minesweeper in Javascript