have part of the player disconnecting/quitting function added to code