extract playerserver to separate file and fix pause