Added victory and loss conditions.