tic tac toe with AngularJS and Firebase