void addClientToList(Socket sock) {
		for(int i=0;i<clients.length;i++){
			if(clients[i] == null){
				clients[i] = sock;
				
				try {
					//set up buffer size
					sock.setSendBufferSize(512);
					
					streams[i] = new ObjectOutputStream(sock.getOutputStream());
					newPlayer = i;
				} catch (Exception e) {
					e.printStackTrace();
				}
				
				return;
			}
			
			try{
				sock.close();
			} catch (Exception e){
				e.printStackTrace();
			}
			System.out.println("connection refused; max clients reached");
		}
	}