fixed issue that prevented firebase from recognizing a win.