boolean readMessage(ObjectInputStream ips) {
			Message receive = null;
			String name = nickname;
			try {
				Object fromServ = ips.readObject();
				if (fromServ instanceof Message) receive = (Message) fromServ;
			} catch (IOException | ClassNotFoundException e) {
				e.printStackTrace();
			}
			if (receive instanceof ChangeNickMessage) {
				name = ((ChangeNickMessage)receive).name;
				multiQueue.put(new StatusMessage(nickname+" is now known as "+name+"."));
				nickname = name;
			}
			if (receive instanceof ChatMessage) {
				RelayMessage m = new RelayMessage(nickname, (ChatMessage) receive);
				multiQueue.put(m);		
				try {
					database.addMessage(m);
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
			return true;
	 }