Minesweeper using HTML5 canvas