An algorithm for payo space in C1 parametric game