@Override
	public void run() {
		while(running){
			try{
				if(inStream.available() > 0){
					
					gameTime = inStream.readDouble();
					gamePeriod = inStream.readInt();
					gameState = inStream.readInt();
					playerArray = (int[][]) inStream.readObject();
					
					for(int i=0;i<3;i++){
						ballArray[i] = inStream.readInt();
					}
					
					for(int i=0;i<4;i++){
						blueGoalieArray[i] = inStream.readInt();
					}
					
					for(int i=0;i<4;i++){
						redGoalieArray[i] = inStream.readInt();
					}
					
					ballPossessor = inStream.readInt();
					chargeTime = inStream.readDouble();
					blueScore = inStream.readInt();
					redScore = inStream.readInt();
					goalPosition = inStream.readInt();
					
					Thread.sleep(15);
					
				}else{
					Thread.sleep(2);	
				}
				
				
			} catch(Exception e){
				e.printStackTrace();
			}
		}
		
		System.out.println("ClientStreamReader exit");
	}