AngularJS and Firebase tictactoe