Added win and loose conditions