added the client handling for same team player restriction

Added a check while adding for the same team player count.