added error handling to the server, finished playerDataUpdate and playerDisconnect functionality