Brandon Joyce's minesweeper in NodeJS