public Player(String name, String color, BoardCell location) throws BadConfigFormatException {
		this.name = name;
		this.location = location;
		cards = new ArrayList<Card>();
		// map the color string to a color value
		if (color.equalsIgnoreCase("yellow")) {
			this.color = Color.YELLOW;
		} else if (color.equalsIgnoreCase("green")) {
			this.color = Color.GREEN;
		} else if (color.equalsIgnoreCase("red")) {
			this.color = Color.RED;
		} else if (color.equalsIgnoreCase("white")) {
			this.color = Color.WHITE;
		} else if (color.equalsIgnoreCase("blue")) {
			this.color = Color.BLUE;
		} else if (color.equalsIgnoreCase("purple")) {
			this.color = Color.MAGENTA;
		}
		else {
			throw new BadConfigFormatException("A color name is wrong" + color);
		}
	}