minesweeper clone in angularJS