cheak win function add