tic-tac-toe recreated with AngularJS