HTML5 Javascript Minesweeper game