Added logic to handle substitutions on teams with players having same last name