Changed the busy waiting to sleeping in the ClientGameLoop and PseudoServer threads. Fixed a few bugs e.t.c...