@Override
	public void mouseClicked(MouseEvent arg0) {

		if (Player == tg.gl.getTurn()) {
			JButton l = (JButton) arg0.getSource();
			int move = tg.getInt(l.getName());
			
			if (tg.gl.validMove(move, this.Player)) {
				TiarUserMessage tum = new TiarUserMessage(move, this.Player);
				try {
					sendMessage(enc.encode(tum));
				} catch (JSONException e) {
					e.printStackTrace();
				}
			}
		} else {
			JOptionPane.showMessageDialog(null, "Not your turn!",
					"Warning", JOptionPane.ERROR_MESSAGE);
		}
	}