Implement win conditions detection in yap engine.
Implement next condition detection.
Re-implement GetPartialGoals which does not query to YAP.