Minesweeper using HTML5 Canvas