implemented win by 3 feature