AI: Search for the winning condition