public void setEditable(boolean canEdit)
	{
		if (canEdit)
		{
			createClickListener();
			for (Peg peg : guess)
			{
				peg.addMouseListener(clickListener);
				peg.setColor(getBackground()); //to show the user the pegs are now editable
			}
		}
		else
		{
			for (Peg peg : guess)
			{
				peg.removeMouseListener(clickListener);
			}
		}
	}