cleaning up server.js and playerserver.js