fully working tic tac toe including firebase and ties