Tic tac toe with Angular and Firebase