Move socket establishment into function
Set up local player after UUID has been received