Minesweeper directive for AngularJS