code for finding winning strategy