private void sendGuessSet() {
		Dot[] dots = guessSet.getDots();
		boolean isInvalid = false;

		// Check if dots in guess set are default color (not changed).
		for (int i = 0; i < dots.length; i++) {
			if (dots[i].getColor().equals(GameColor.DEFAULT.getColor()))
				isInvalid = true;
		}

		// Send guess set to session.
		if (!isInvalid) {
			int[] dotValues = new int[dots.length];
			// Convert dot colors to integer values.
			for (int i = 0; i < dots.length; i++) {
				dotValues[i] = getIntValueOfColor(dots[i].getColor());
			}

			frame.sendGuessSet(dotValues);

			Color[] colors = new Color[4];
			for (int i = 0; i < colors.length; i++)
				colors[i] = dots[i].getColor();

			gameGrid.changeSetColors(triesLeft - 1, 0, colors);

			if (triesLeft != 0)
				triesLeft--; // Lose one try

			// Sets a warning by changing foreground color
			if (triesLeft <= 3)
				lblTriesLeft.setForeground(GameColor.RED.getColor());

			lblTriesLeft.setText("" + triesLeft);
		}
	}