Made loosing condition and winning condition