public boolean isConnected(COLOR myColor, int x, int y)
	{
		if(isInBound(x+1,y)&&myColor==this.board.get(x+1).get(y).color)
			return true;
		if(isInBound(x-1,y)&&myColor==this.board.get(x-1).get(y).color)
			return true;
		if(isInBound(x,y+1)&&myColor==this.board.get(x).get(y+1).color)
			return true;
		if(isInBound(x,y-1)&&myColor==this.board.get(x).get(y-1).color)
			return true;
		return false;
	}