Tic Tac Toe with AngularJS and Firebase