Minsweeper Game Code written in Angular JS