Bug fix on winning logic.