added some various conditions when the client would sleep for a bit such that it won't just pee itself whenever it has free cpu cycles