TicTacToe with AngularJs