move dead zone calculation to server (old code left behind in case of errors).