Minesweeper game using html5 canvas