Tic tac toe with Angular.js and Firebase