added function to change nick if it is already in use