swap X & O strings with object from firebase