Minesweeper for node.js (as an exercise)