Minesweeper done in AngularJS