Minesweeper using angular.js