public void convertString(String code) {
		for (int c = 0; c < code.length(); c++) {
			switch (code.toUpperCase().charAt(c)) {
			case 'B':
				elements[c] = new Peg(Colors.BLUE);
				break;
			case 'G':
				elements[c] = new Peg(Colors.GREEN);
				break;
			case 'O':
				elements[c] = new Peg(Colors.ORANGE);
				break;
			case 'P':
				elements[c] = new Peg(Colors.PURPLE);
				break;
			case 'R':
				elements[c] = new Peg(Colors.RED);
				break;
			case 'Y':
				elements[c] = new Peg(Colors.YELLOW);
				break;
			}
		}
	}