Refactor method to find winning moves