Updated multithreading,game ending,check for valid movements, client is alive or not