Hexagonal Minesweeper in Javascript