Add winner detection.