public void run(){
			
			//TODO

			while( thisClientIsPlaying && spaceGameServer.playing ){ // loop till playing is set to false
			//TODO 
			try {
		
				dis = new DataInputStream(clientConnection.getInputStream());
				dos = new DataOutputStream(clientConnection.getOutputStream());
				
				
				code = dis.readInt();
				port = dis.readInt();
		
				clientID = new InetSocketAddress(clientConnection.getInetAddress(), port);
				
				if(code == Constants.REGISTER)
				{
				    
				    spaceGameServer.addPersistentConnection(this);
					InitializeGame();
				}
				
				else if(code == Constants.FIRED_TORPEDO)
				{
					FiringTorpedo();
				}
				else if(code == Constants.EXIT)
				{
					leavingGame();
				}
				
			} catch (IOException e) {}}
			
			
			//TODO
	} // end run