public void sendMessage(String msg)
	{
		try {
			writer.write(msg+"\n");
			writer.flush();
		} catch (IOException e) {
			System.out.println("Message send failed");
			e.printStackTrace();
		}
		
	}