public String convertCodetoString() {
		String result = "";
		for (int c = 0; c < elements.length; c++) {
			if (elements[c].getColor().equals(Colors.BLUE))
				result += "B";
			else if (elements[c].getColor().equals(Colors.GREEN))
				result += "G";
			else if (elements[c].getColor().equals(Colors.ORANGE))
				result += "O";
			else if (elements[c].getColor().equals(Colors.PURPLE))
				result += "P";
			else if (elements[c].getColor().equals(Colors.RED))
				result += "R";
			else if (elements[c].getColor().equals(Colors.YELLOW))
				result += "Y";
		}
		return result;
	}