Win and loss

Added win and loss condition