fixed a bug with finding winning plays