TicTacToe in AngularJS