add checkwin to firebase