minesweeper clone in AngularJS