got the you win function in