Adding functions to set player id

It also updated updateSF function to use player ids instead of random
generated string