public void sendData(ObjectOutputStream[] streams, double time){
		for(int i=0;i<streams.length;i++){
			if(streams[i] == null) continue;

			try {
				streams[i].writeDouble(time);
				streams[i].writeInt(GameState.period);
				streams[i].writeInt(GameState.state);
				streams[i].writeObject(playerArray);
				//write ball info
				for (int j=0;j<ballArray.length;j++){
					streams[i].writeInt(ballArray[j]);
				}
				//write blue goalie info
				for (int j=0;j<blueGoalieArray.length;j++){
					streams[i].writeInt(blueGoalieArray[j]);
				}
				//write red goalie info
				for (int j=0;j<redGoalieArray.length;j++){
					streams[i].writeInt(redGoalieArray[j]);
				}
				streams[i].writeInt(ballPossessor);
				streams[i].writeDouble(chargeTime[i]);
				streams[i].writeInt(GameState.blueScore);
				streams[i].writeInt(GameState.redScore);
				streams[i].writeInt(goalPosition);

				streams[i].flush();
			} catch (Exception e) {
				System.out.println("issue in GameMechanics.sendData");
				e.printStackTrace();
			}
		}
	}