updated firebase connectivity for ttt and adjusted player logic