Added a proper win heuristic