changed the surrender logic in the rules file