added quedan surrender basic function.