Tic Tac Toe in AngularJS