Tic-Tac-Toe game using angularJS