@Override
	public void run() {
		try {
			reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
		} catch (IOException ex) {
			Logger.getLogger(ServerClient.class.getName()).log(Level.SEVERE, null, ex);
		}
		while (run) {
			try {
				String dir = reader.readLine();
				if (dir.charAt(0) == '!') {
					server.echoChat(dir);
				}
				if (dir.charAt(0) == '$') {
					requestMap();
				}
				else {
					System.out.println(dir);
					move(dir);
				}
			} catch (IOException ex) {
				Logger.getLogger(ServerClient.class.getName()).log(Level.SEVERE, null, ex);
			}
		}
	}